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/preset-env incorrectly add too many plugins with Node.js target #9047
Comments
Hey @ehmicky! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
After looking more into the issue, it seems like the problem is not Example for
|
Great, thanks for this very fast PR! I note the following:
|
@ehmicky syntax-object-rest-spread is needed to enable parsing in babel, not for transforming. |
Bug Report
Current Behavior
When targeting the latest Node.js version (
11.2.0
),@babel/preset-env
adds the following plugins:Input Code
// empty file
Expected behavior/code
All those plugins are not needed with Node.js
11.2.0
which already supports those.Babel Configuration (.babelrc, package.json, cli command)
Environment
6.23.0
11.2.0
, npm6.4.1
18.10
cli
Possible Solution
This seems to be an issue with
compat-table
data. I've opened an issue hereThe text was updated successfully, but these errors were encountered: