Way to use literals and other ES6 enhancements and precompile them in rails 4

0

Do you know if there is any support for precompiling javascripts using literals and other improvements to ES6?

I wanted to start using projects rails ES6 but when I precompile in production it fails me.

Thanks

    
asked by Emanuel Friedrich 18.08.2017 в 05:13
source

1 answer

0

For now rails does not have official support for ES6, however there are some gems that could help you:

rails 4.x

  • link (in conjunction with Sprockets 3).

5.x rails:

answered by 18.08.2017 / 14:45
source