3 ms·
You are absolutely right when it comes to using ECMAScript 6 natively. It will officially become a standard in mid 2015. By then modern browsers should have imp
by rauschma 12y ago
You are absolutely right when it comes to using ECMAScript 6 natively. It will officially become a standard in mid 2015. By then modern browsers should have implemented most of it, but it will be years until legacy browsers go away. It feels to me that (for most projects) we can just now rely on ECMAScript 5 being there everywhere.
On the other hand, there are already a few decent solutions for transpiling ECMAScript 6 to ES5 [1]:
* Traceur (there are Traceur-based plugins for Grunt, Gulp, browserify, webpack, etc.): https://github.com/google/traceur-compiler https://github.com/google/traceur-compiler
* 6to5: https://6to5.org/ https://6to5.org/
* es6-transpiler.js: https://github.com/termi/es6-transpiler https://github.com/termi/es6-transpiler
Using those tools results in a workflow that is much like using CoffeeScript.
[1] http://www.2ality.com/2014/08/es6-today.html http://www.2ality.com/2014/08/es6-today.html
- igl 12y agoI am mostly looking forward to Proxies and Tail calls, both cannot be implemented with traceur :/