We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Choose one: is this a bug report or feature request?: feature request
it would be more intuitive and also less weird (for npm 2, yarn?) if babel-preset-env just changed into babel-polyfill still
import "core-js/string.pad-start"; import "core-js/string.pad-end";
Currently https://github.com/babel/babel-preset-env/#usebuiltins turns
import "babel-polyfill";
into
import "core-js/modules/es7.string.pad-start"; import "core-js/modules/es7.string.pad-end";
Generate the extra module files to be used by preset-env instead of just the one polyfill.js file in https://github.com/babel/babel/blob/7.0/packages/babel-polyfill/src/index.js.
Need to modify https://github.com/babel/babel/blob/7.0/packages/babel-polyfill/scripts/build-dist.sh to generate the individual polyfills
The text was updated successfully, but these errors were encountered:
Hi,
I would help with this issue, but I need a bit guidance. :-)
Shouldn't the expected behavior to be imports from babel-polyfill:
babel-polyfill
import "babel-polyfill/string.pad-start"; import "babel-polyfill/string.pad-end";
instead from core-js?
core-js
Otherwise generating new module files in babel-polyfill wouldn't make much sense, I think.
Thanks, Andi
Sorry, something went wrong.
@andimarek yeah must of been my typo
Done in #5584 and released with alpha 7
No branches or pull requests
Choose one: is this a bug report or feature request?: feature request
Expected Behavior
it would be more intuitive and also less weird (for npm 2, yarn?) if babel-preset-env just changed into babel-polyfill still
Current Behavior
Currently https://github.com/babel/babel-preset-env/#usebuiltins turns
into
Possible Solution
Generate the extra module files to be used by preset-env instead of just the one polyfill.js file in https://github.com/babel/babel/blob/7.0/packages/babel-polyfill/src/index.js.
Need to modify https://github.com/babel/babel/blob/7.0/packages/babel-polyfill/scripts/build-dist.sh to generate the individual polyfills
The text was updated successfully, but these errors were encountered: