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
Rename ES2018/ES2019 plugins (proposal -> transform) #9106
Conversation
I replaced the following regex: proposal-(object-rest-spread|async-generator-functions|optional-catch-binding|json-strings,unicode-property-regex) with transform-$1 I excluded the following files from the replacement: babel.config.js, CHANGELOG.md, CONTRIBUTING.md, missing-plugin-helper.js, yarn.lock, babel-standalone/, babel-preset-env-standalone/, babel-preset-env/ I will update babel-standalone and preset-env later
Note: old blugins can't be removed, it would be a breaking change
@@ -2,7 +2,7 @@ import { availablePlugins, registerPlugin } from "@babel/standalone"; | |||
|
|||
const notIncludedPlugins = { | |||
"transform-new-target": require("@babel/plugin-transform-new-target"), | |||
"proposal-json-strings": require("@babel/plugin-proposal-json-strings"), | |||
"transform-json-strings": require("@babel/plugin-transform-json-strings"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@existentialism What is this object for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a mapping of packages not included in babel-standalone
.
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9500/ |
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9498/ |
39b7906
to
dd8c3fe
Compare
dd8c3fe
to
1679d06
Compare
Thanks for adding the PR although.. so I feel like it's not worth changing the name and going through all this, as once it's standardized you shouldn't need to use the individual plugins alone and rely on preset-env anyway? |
I mainly did it for consistency, I didn't have a strong reason. |
Hmm, idk, I support the |
This is quite annoying to do, hopefully it needs to be done only once per year 😆 Follows up to #8448.
Is 0116876 breaking? I don't think so, but I can revert it.Yes, it is for preset-env. I removed that commit.-(syntax|proposal)-
packages on npm?