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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Some of the proposed methods do not seem to have been realised #15412
Comments
Hey @limingcan562! 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. |
To fix this issue the As a workaround, you can replace const plugins = [
[
'babel-plugin-polyfill-corejs3',
{
// provide the exact `core-js` version you are using
version: "3.27",
proposals: true
}
]
]; |
I have tried it and it is basically fine. I looked at the babel-polyfills and some examples, but found that there was only the Are there any other configuration items in |
Hello, I'm sorry to bother you again. I am currently delving deeper into Babel (as it is a great tool) and based on the above answers. So I have the following questions and I hope to receive your answers:
Looking forward to your reply, appreciate it! 馃檹馃徎 |
Yes, in fact babel/packages/babel-preset-env/src/index.ts Line 219 in 0f492e4
The document of
provides a link to options supported by every polyfill provider, including The second sections includes options that are only supported in If you have any questions on docs, feel free to open a PR at https://github.com/babel/babel-polyfills. |
Thank you for your answer! This has given me a deeper understanding of I think Or will it be promoted during |
馃捇
How are you using Babel?
babel-loader (webpack)
Input code
I used two methods that are currently in
stage-1
Configuration file name
babel.config.js
Configuration
Current and expected behavior
Babel compiles and outputs the following result:
It does not appear to introduce the relevant polyfill to implement
Environment
System:
OS: Windows 10 10.0.18363
Binaries:
Node: 14.16.1 - D:\nodejs\node.EXE
Yarn: 1.19.1 - ~\AppData\Roaming\npm\yarn.CMD
npm: 6.14.12 - D:\nodejs\npm.CMD
npmPackages:
@babel/cli: ^7.20.7 => 7.20.7
@babel/core: ^7.20.12 => 7.20.12
@babel/plugin-transform-runtime: ^7.19.6 => 7.19.6
@babel/preset-env: ^7.20.2 => 7.20.2
@babel/runtime-corejs2: ^7.20.13 => 7.20.13
@babel/runtime-corejs3: ^7.20.13 => 7.20.13
babel-loader: ^9.1.2 => 9.1.2
webpack: ^5.75.0 => 5.75.0
Possible solution
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: