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

Include syntax-class-properties in packager #12550

Closed
wants to merge 1 commit into from
Closed

Include syntax-class-properties in packager #12550

wants to merge 1 commit into from

Conversation

danez
Copy link

@danez danez commented Feb 23, 2017

Babylon 6.16.0 fixed a problem that it was parsing class properties although the corresponding plugin was not enabled. This leas to react-native breaking with the new version of babylon as class-properties are use in node-haste, but the plugin is not enabled in react-native.

We for the time being reverted some changes and released 6.16.1, but going to reenable them at some point.

I'm not 100% sure if it is the correct package.json file I changed, let me know if not. It would also be included due to babel-preset-react-native, but maybe better be explicit.

Fixes #12542 and #12545 if released as bugfix release for the latest version.

This includes the babel-plugin-syntax-class-properties in packager/babelRegisterOnly.js
Babylon 6.16.0 fix a problem that we were parsing class properties allthough the plugin was not enabled.
This change fails in react-native as class-proeprties are use in node-haste, but the plugin is not enabled in react-native.
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. GH Review: review-needed labels Feb 23, 2017
@ide
Copy link
Contributor

ide commented Feb 23, 2017

Thanks for the PR!

BTW the React Native codebase has two parts - the code that you run on a phone and the code for the server that runs on your computer. babel-preset-react-native is used for phone code, and the changes you made apply to the server where the bug was.

@facebook-github-bot shipit

@facebook-github-bot
Copy link
Contributor

@ide has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@ide
Copy link
Contributor

ide commented Feb 23, 2017

Actually, I realized the bot might have some trouble merging this commit because it adds a new package.json dependency. @hramos do you think you could help merge this?

@hramos
Copy link
Contributor

hramos commented Feb 23, 2017

Sure thing

@skevy
Copy link
Contributor

skevy commented Jun 8, 2017

Hi there!

The packager no longer lives in this repo. It now lives in https://github.com/facebook/metro-bundler. The reasoning for the split is explained here: #13976.

If you're still interested in pursuing this PR, please open the PR on that repo! :)

Thanks!
-Adam

@skevy skevy closed this Jun 8, 2017
@danez danez deleted the fix-babylon branch June 8, 2017 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating new project fails
7 participants