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

[babel 8] Enable allowDeclareFields option by default w/ Flow #12457

Merged

Conversation

nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented Dec 8, 2020

Q                       A
Fixed Issues? Fixes #10039
Patch: Bug Fix?
Major: Breaking Change? Yes
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link babel/website#2765
Any Dependency Changes?
License MIT

This is a backport of 635c7fd. The original PR is #10120, but after many rebases it has been completely rewritten.

@@ -149,6 +149,8 @@ function pushTask(taskName, taskDir, suite, suiteName) {
},
};

delete taskOpts.BABEL_8_BREAKING;
Copy link
Member Author

Choose a reason for hiding this comment

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

Without this @babel/core throws about the unknown BABEL_8_BREAKING option.

@babel-bot
Copy link
Collaborator

babel-bot commented Dec 8, 2020

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/34237/

@codesandbox-ci
Copy link

codesandbox-ci bot commented Dec 8, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 981e683:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

pajaydev and others added 2 commits December 8, 2020 12:15
cherr-pick of 4903e2e

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
@nicolo-ribaudo nicolo-ribaudo changed the title [babel 8] Enable the allowDeclareFields Flow option by default [babel 8] Enable allowDeclareFields option by default w/ Flow Dec 8, 2020
@nicolo-ribaudo nicolo-ribaudo merged commit a17e471 into babel:main Dec 8, 2020
@nicolo-ribaudo nicolo-ribaudo deleted the backport-flow-keep-class-fields branch December 8, 2020 23:16
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Mar 10, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 10, 2021
@nicolo-ribaudo nicolo-ribaudo added babel 8 PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release and removed babel-8-dev → main babel 8 labels Aug 8, 2023
@JLHwung JLHwung added this to the v8.0.0 milestone Aug 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: flow outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should not remove class fields when using flow
5 participants