-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Support babel-source 6.0.x #282
base: master
Are you sure you want to change the base?
Conversation
058315c
to
2ddbb53
Compare
Hey @tricknotes, I'm using this gem with Sprockets and based on how Babel 6 does not contains any transformations by default I'm wondering if this gem will bundle any preset on top of |
I also miss mechanics on adding and loading Babel plugins into ExecJS context. |
|
2ddbb53
to
49c6857
Compare
@tricknotes In December I released a package called babel-standalone that works the same as the old babel-browser. It should (hopefully) be a drop-in replacement for Babel 5. |
I'm interested in this. It would be nice if arbitrary Babel plugins were supported. @Daniel15, would your package allow additional plugins to be used? |
Yes, you can use additional plugins, you just pass the plugin objects Sent from my phone.
|
I also found this https://github.com/fnando/babel-schmooze-sprockets (based on https://github.com/Shopify/schmooze) which can use Babel 6 today. Edit: babel-schmooze-sprockets is restricted to sprockets 4 (which is still in beta). I went ahead and created a similar sprockets plugin myself that works on sprockets 3 and has some extra stuff geared specifically toward migrating large codebases to ES6 modules (since that was my use case at work) but it also works for general purpose babel transpilation: https://github.com/rmacklin/sprockets-bumble_d |
@tricknotes are you interested in a pull request with a solution for this based in babel-standalone by @Daniel15? |
What is the current status of this? Will we have Babel 6 support or is this still blocked? The two blocking issues mentioned in the description are closed at babel, so I think a workaround needs to be implemented for them. |
@pjg Can you introduce node into your stack alongside ruby? If so, my recommendation would be to use babel on node. If you're using sprockets, you can use https://github.com/rmacklin/sprockets-bumble_d which bridges sprockets with babel running on node. |
Bump. It's almost 2018 and we are still stuck with Babel 5.x. Is there any chance this can be completed any time soon? |
I think the maintainers of this gem are just trying to tell us that Ruby and modern Javascript don't go well together (despite what @dhh et. al. would make you want to believe). |
Fair enough @guilleiguaran :) |
Any progress in this issue? It's an important upgrade. |
The following issues are blocker:
external-helpers.js
babel#2768