-
-
Notifications
You must be signed in to change notification settings - Fork 631
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
Work on babel 7 with transform-runtime #1140
Conversation
…ils to work with babel@7 (shakacode#1136)" This reverts commit de06717. In general, Webpack doesn't build under `node_modules`. So react-on-rails should support browser compatible build.
babel-runtime is not installed Babel 7 environment. (Babel 7 denpends @babel/runtime.) So this should be depended as "dependencies".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we upgrade the whole project to babel 7 with this?
Reviewed 4 of 4 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @tricknotes)
package.json, line 15 at r1 (raw file):
https://github.com/shakacode/react_on_rails/pull/11
package.json, line 15 at r1 (raw file):
Thanks for your review, @justin808 !
It doesn't depend on this change. And I'm sorry not to see your review comment from reviewable.io. (It seems leaving empty :<) Could you tell me what you want to comment? |
Ah, I misunderstood that you mean upgrading to babel 7 of react-on-rails. The answer is no. |
@tricknotes Thanks! Yes, let's update the project for Babel 7: the spec/dummy app, and other package.json files. I agree, definitely don't require this upgrade. Once we get that done, I'll cut a release. |
@justin808 |
Previously, I sent a PR to stop using babel-plugin-transform-runtime. #1136
But this breaks build for legacy browser.
So I fixed to apply babel-plugin-transform-runtime.
And it is allow to use for Babel 7 users by providing babel-runtime as "dependencies".
This change is