Skip to content

Work on babel 7 with transform-runtime#1140

Merged
justin808 merged 2 commits intoshakacode:masterfrom
tricknotes:work-on-babel-7
Sep 12, 2018
Merged

Work on babel 7 with transform-runtime#1140
justin808 merged 2 commits intoshakacode:masterfrom
tricknotes:work-on-babel-7

Conversation

@tricknotes
Copy link
Copy Markdown
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
Copy Markdown

Coverage Status

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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