question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support what versions of es on node/browsers?

See original GitHub issue

https://github.com/canvg/canvg/pull/653 has some discussion

Generally:

  • What node versions do we want to support?
  • What browsers do we want to support?

This will take effect in the 2.0 release.

My suggestions:

  • Drop support for node <6.x and bump to node 8.x so we can use es6/async/await natively. node 6 is almost at end of LTS anyways.
  • Target es6 for browsers http://kangax.github.io/compat-table/es6/. IE11 no longer supported.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gabelernercommented, Nov 27, 2018

i’ve used browserlist in the past and didn’t know it worked for node so let’s just do that.

let’s do one build for each of the following:

  • node 8.x+
  • browserlist defaults (will be strictly for ie11 probably, but can also have users compile this themselves)
  • browsers that support es6 modules

how’s this work for you?

0reactions
gabelernercommented, Oct 17, 2020

agreed. our targets are well defined today and people can open PRs if they want different support.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"es6" | Can I use... Support tables for HTML5, CSS3, etc
ES6 Number · Global · Chrome · Edge * · Safari · Firefox · Opera · IE · Chrome for Android.
Read more >
ES7, ES8, ES9, ES10, ES11 Browser support - Stack Overflow
Browser vendors don't implement specific versions, but specific features. Almost every modern browser is still missing features from ...
Read more >
ECMAScript 6 compatibility table
Feature name▻ Current browser 98% ES6 Trans‑ piler 25% Trace... Optimisation Optimisation Optimisation Optimi... §proper tail calls (tail call optimisation)▻ 0/2 0/2 0/2 §direct recursionc No...
Read more >
ES Modules and Node.js: Hard Choices - NodeSource
Node.js v6 supports 93% of the ES2015 syntax and features and most modern browsers exceed 90%. However, no JavaScript runtime currently ...
Read more >
How to use ESM on the web and in Node.js - ByteofDev
Today, Chrome, Safari, and Firefox fully support ESM, so you should not have any problem running it in modern browsers. Additionally, Node ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found