[Bug]: Bebel Version upgraded to 7.24.1 Promise.allSettled cannot support
yuzhishuang opened this issue · 1 comments
yuzhishuang commented
💻
- Would you like to work on a fix?
How are you using Babel?
babel-loader (webpack)
Input code
babel.config.js
module.exports = {
env: {
node: {
presets: [
[
'@babel/preset-env',
{
targets: {
node: '14'
},
modules: false
}
],
'@vue/babel-preset-jsx',
[
'@babel/preset-typescript',
{
allExtensions: true
}
]
],
sourceType: 'unambiguous',
plugins: [
[
'@babel/plugin-transform-runtime',
{
corejs: {
version: 3,
proposals: true
}
}
],
['@babel/plugin-proposal-decorators', {legacy: true}],
'@babel/plugin-proposal-class-properties',
'@babel/plugin-syntax-dynamic-import',
[
'component',
{
libraryName: '@ncfe/nc.element-ui',
style: false
},
'@ncfe/nc.element-ui'
]
]
},
web: {
presets: [
[
'@babel/preset-env',
{
targets: {
chrome: 44,
ie: 8
},
modules: false
}
],
'@vue/babel-preset-jsx',
[
'@babel/preset-typescript',
{
allExtensions: true
}
]
],
sourceType: 'unambiguous',
plugins: [
[
'@babel/plugin-transform-runtime',
{
corejs: {
version: 3,
proposals: true
}
}
],
['@babel/plugin-proposal-decorators', {legacy: true}],
'@babel/plugin-transform-object-assign',
'@babel/plugin-transform-member-expression-literals',
'@babel/plugin-transform-async-to-generator',
'@babel/plugin-transform-property-literals',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-syntax-dynamic-import',
[
'component',
{
libraryName: '@ncfe/nc.element-ui',
style: false
},
'@ncfe/nc.element-ui'
]
]
}
}
};
Configuration file name
No response
Configuration
No response
Current and expected behavior
Babel [7.24.1] can support Promise.allSettled without changing the configuration
Environment
only babel.config.js
Possible solution
No response
Additional context
babel-bot commented
Hey @yuzhishuang! 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.