I am upgrading my application from Rails 5.0 to 5.1, and there is one thing that I cannot find anywhere else: using Webpacker to process ActionCable JavaScript files.
I understand that the Webpacker and asset pipeline should work side by side, but now that we have created Webpack in Rails, it would be impractical to use it for files located in the assets directory (where ActionCable lives), but I can not find any information about how to do it.
I'm particularly interested in Babel, so I could use ES6. Any ideas?
source share