Skip to content
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

Merged
merged 2 commits into from
Sep 12, 2018

Conversation

tricknotes
Copy link
Contributor

@tricknotes tricknotes commented Sep 8, 2018

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 Reviewable

…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".
@coveralls
Copy link

Coverage Status

Coverage remained the same at ?% when pulling 5156d57 on tricknotes:work-on-babel-7 into 89c2a7e on shakacode:master.

Copy link
Member

@justin808 justin808 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

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):


@tricknotes
Copy link
Contributor Author

Thanks for your review, @justin808 !

Should we upgrade the whole project to babel 7 with this?

It doesn't depend on this change.
However upgrading to babel 7 is not difficult.
Which do you like pushing the change to this PR or creating another PR?

And I'm sorry not to see your review comment from reviewable.io. (It seems leaving empty :<)
2018-09-11 14 14 39

Could you tell me what you want to comment?

@tricknotes
Copy link
Contributor Author

tricknotes commented Sep 11, 2018

Should we upgrade the whole project to babel 7 with this?

Ah, I misunderstood that you mean upgrading to babel 7 of react-on-rails.
Does "the whole project" mean "the projects that depends on react-on-rails" ?

The answer is no.
The react-on-rails users don't need to upgrade their project to babel 6.
They can use either babel 6 and babel 7 they want to use.

@justin808 justin808 merged commit e6e15c4 into shakacode:master Sep 12, 2018
@justin808
Copy link
Member

@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.

@tricknotes tricknotes deleted the work-on-babel-7 branch September 12, 2018 12:05
@tricknotes
Copy link
Contributor Author

@justin808
Awesome thanks ✨
I sent a PR to upgrade Babel version to 7. #1141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants