From 0bc9d249c3ac1d3113117e3f7b87233d03ed7a0b Mon Sep 17 00:00:00 2001 From: "Xin Du (Clark)" Date: Wed, 23 Dec 2020 14:16:02 +0000 Subject: [PATCH] fix(babel): enable polyfilling of proposal supported by core-js (#8545) --- packages/babel-preset-app/src/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/babel-preset-app/src/index.js b/packages/babel-preset-app/src/index.js index 2bb1f335ba..6abbe06738 100644 --- a/packages/babel-preset-app/src/index.js +++ b/packages/babel-preset-app/src/index.js @@ -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 },