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
core-js definitions are not fully injected with useBuiltIns: usage #2209
Comments
Built-ins definition should be aligned with babel/babel-polyfills#99 |
So, should we wait until it got merged? |
Not necessary. In this PR also should be:
|
babel/babel-polyfills#99 is merged. |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Describe the bug
When using
env: mode: "entry"
with TypeScript andPromise.any
, the output file should include not onlypromise.any
module but alsoesnext.agregate-error
module.For reference: zloirock/core-js#737 babel/babel#10910
Input code
Config
Expected behavior
Considering the output file:
It should also include
require("esnext.agregate-error")
according to zloirock/core-js#737.Version
$ yarn swc --version yarn run v1.22.11 $ /Users/pan93412/Projects/check_env/node_modules/.bin/swc --version @swc/cli: 0.1.49 @swc/core: 1.2.84 ✨ Done in 0.24s.
Additional context
Thanks a lot! :)
The text was updated successfully, but these errors were encountered: