Does anybody know of any work being done on an ES6 transpiler for Rails? This seems like a basic thing for the asset pipeline, like coffeescript to js support.
Related to this question, but different in that we’ll probably have to transpile for a while.
Seems like most of the JS toolchains support transpiling to es6:
I’ve created a sample WebPack project that compiles JS (and React JSX) in ES6 to a JS bundle for Rails: https://github.com/justin808/react-tutorial-hot/tree/es6. I’ll soon be writing about how to set this up.
Possibly, something like WebPack should be integrated into the asset pipeline?