Currently, the only ES2015 feature we use is modules, which we compile away down to ES5 in the build process. As we are gearing up for another batch of breaking changes in the 3.0 release, we could also start using more ES6 features.
Node 4 just left its maintenance period, meaning we are left with Node 6, 8, and 10, which all have nearly full ES6 support. The situation for all major browsers is similar. https://kangax.github.io/compat-table/es6/
Pros:
- Better developer ergonomics, smaller source code size
- Lots of ES6 features (e.g. arrow functions, rest parameters) are faster than their ES5 equivalents
- Can use Maps, Sets, Symbols, generators, Promises, etc. which are all handy
Cons:
- Users still supporting ES5 environments, e.g. IE11 will have to transpile, which will slow down their builds. They can elect to keep using v2 however.
Currently, the only ES2015 feature we use is modules, which we compile away down to ES5 in the build process. As we are gearing up for another batch of breaking changes in the 3.0 release, we could also start using more ES6 features.
Node 4 just left its maintenance period, meaning we are left with Node 6, 8, and 10, which all have nearly full ES6 support. The situation for all major browsers is similar. https://kangax.github.io/compat-table/es6/
Pros:
Cons: