Hacker News new | ask | show | jobs
by ownedthx 3919 days ago
I'm not sure if this is baked into Rails 5, but you can get es6 support (via Babel) with the sprockets-es6 gem:

https://github.com/TannerRogalsky/sprockets-es6

Rails is still a second-class JS citizen due to the asset pipeline being opinionated and controlling compared to the node way of doing things, but it gets you closer to 'the new hotness'.

1 comments

What do you mean JS is still a second class citizen? I'm unfamiliar with Rails asset pipeline. Do you just mean that the asset pipeline doesn't really have as much features as other build tools like Grunt and Gulp? Or is there something about asset pipeline that prevents you from using JavaScript to its full potential? (Genuinely curious. Not familiar with the JS side of Rails)