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

chore: update babel-preset-stage (0,1,2,3 readme files) #10111

Merged
merged 2 commits into from Jul 4, 2019

Conversation

lidoravitan
Copy link
Contributor

@lidoravitan lidoravitan commented Jun 19, 2019

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

follow by #8427 issue

],
presets: [
// ...
],
};
};
```

**NOTE: Compatibility with @babel/plugin-proposal-class-properties**
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
**NOTE: Compatibility with @babel/plugin-proposal-class-properties**
**NOTE: Compatibility between `@babel/plugin-proposal-class-properties` and `@babel/plugin-proposal-decorators`**

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nicolo-ribaudo I will apply these changes for all, right?


When using the `legacy: true` mode, `@babel/plugin-proposal-class-properties` must be used in `loose: true` mode to support the @babel/plugin-proposal-decorators.

If are not using `@babel/plugin-proposal-decorators`, `loose` mode is not needed at all.
Copy link
Member

Choose a reason for hiding this comment

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

I'd remove "at all", since there are many other valid reasons.

**NOTE: Compatibility with @babel/plugin-proposal-class-properties**
If you are including your plugins manually and using `@babel/plugin-proposal-class-properties`, make sure that `@babel/plugin-proposal-decorators` comes before `@babel/plugin-proposal-class-properties`.

When using the `legacy: true` mode, `@babel/plugin-proposal-class-properties` must be used in `loose: true` mode to support the @babel/plugin-proposal-decorators.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
When using the `legacy: true` mode, `@babel/plugin-proposal-class-properties` must be used in `loose: true` mode to support the @babel/plugin-proposal-decorators.
When using the `legacy: true` option of `@babel/plugin-proposal-decorators`, `@babel/plugin-proposal-class-properties` must be used in `loose: true` mode.

@nicolo-ribaudo nicolo-ribaudo added the PR: Docs 📝 A type of pull request used for our changelog categories label Jun 19, 2019
@nicolo-ribaudo nicolo-ribaudo merged commit b066633 into babel:master Jul 4, 2019
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Docs 📝 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The stage-0 readme contradicts the babel documentation
2 participants