-
Notifications
You must be signed in to change notification settings - Fork 199
requirejs precompile not supported with es6 files from sprockets-es6 gem #241
Comments
What I was wondering, is it possible that the assets that we're going to digestify and compress is the file from sprockets, instead of fresh file copy? Since if we get the file from sprockets, it will be transpiled to es5. |
I tried to tweak some changes, and it seems work for me. |
@chenxeed Thanks for this. I'll have to read up on transpiling. |
@carsomyr You're welcome! :) will love to hear your feedback about this. |
This would be super-great to have — for me it's the last missing piece to getting ES2015 modules to work in Rails. Just say if there's anything I can do to help move this along. |
I've closed my previous PR and reopened it. Rebased and only took 1 commit to change :) |
Hi.
I installed both sprockets-es6 and requirejs-rails in my Rails app.
I changed some of my javascript files to *.es6 extension so that Rails asset pipeline can compile those files to *.es5 from gem sprockets-es6.
Those files also loads normally on requirejs-rails development mode, but unfortunately it returns error on precompiling. The error is something like this:
The file can't be found because it is already named as .es6, hence:
/view/templates.es6
and precompiler can't find it.Need any assistance or suggestions here to support both gems. Thank you :)
The text was updated successfully, but these errors were encountered: