← Back to Upcase

ES6 Transpiler for Rails?


(Justin Gordon) #1

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.
http://parley.rubyrogues.com/t/what-is-the-timeline-on-es6/1841

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?


(Chad Pytel) #2

I haven’t heard of any project for this.