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/preset-env #2497

Open
thernstig opened this issue Apr 15, 2021 · 2 comments
Open

@babel/preset-env #2497

thernstig opened this issue Apr 15, 2021 · 2 comments

Comments

@thernstig
Copy link
Contributor

https://babeljs.io/docs/en/babel-preset-env#how-does-it-work mentions:

We leverage these data sources to maintain mappings of which version of our supported target environments gained support of a JavaScript syntax or browser feature, as well as a mapping of those syntaxes and features to Babel transform plugins and core-js polyfills.

If I understood it correctly, that text is somewhat misleading. The mappings of which version part only lists plugins that will transform the code. It is written like it is a complete list of of all Javascript and syntax features to certain browser versions.

Would it not be more clear to somehow re-write the text so that the link to plugins.json is just used for transpilation i.e. Babel transform plugins (which I think it is?) and then for the polyfill part with core-js separately (with another link if there is one for those mappings?)

@babel-bot
Copy link
Contributor

Hey @thernstig! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community
that typically always has someone willing to help. You can sign-up here
for an invite.

@nicolo-ribaudo
Copy link
Member

You are right, data for the different polyfills are maintained in the polyfill itself or in the integration plugins:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants