|
|
|
|
|
by untog
3471 days ago
|
|
One interesting counterpoint to what you're saying: async/await are not ES6. Although I'm 100% on board with ES6 adoption, there's a slightly worrying element of everyone having a different definition of what it is. Some NPM packages have a "jsnext:main" attribute allowing you to redirect the "main" JS file to load, but it requires you to only use ES6 modules + features currently supported by Node. So you end up transpiling two versions from the original source. It's messy. |
|
Though when I see ES2015, I tend to take it literally.
But moving forward it's going to be important to see what version of the language people are using in their libraries. I can already see github badges for "ES2015 only" or "ES2016+" or something.
Or maybe a plugin which will scan the sources you import into your project and give you warnings if a library is using a feature you aren't supporting/transpiling...