fix(babel): enable polyfilling of proposal supported by core-js (#8545)

This commit is contained in:
Xin Du (Clark) 2020-12-23 14:16:02 +00:00 committed by GitHub
parent b4663d2bfb
commit 0bc9d249c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,6 +87,10 @@ module.exports = (api, options = {}) => {
corejs = { version: Number(corejs) }
}
if (corejs.proposals === undefined) {
corejs.proposals = true
}
const defaultTargets = {
server: { node: 'current' },
client: { ie: 9 },