From e6abbe244bbaa3132b1b0a7db3daddd20f525a12 Mon Sep 17 00:00:00 2001 From: pan93412 Date: Wed, 26 Jan 2022 13:44:28 +0800 Subject: [PATCH] refactor(babel): use corejs --- babel.config.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/babel.config.js b/babel.config.js index c0fa85e..707ce4a 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,7 +1,11 @@ module.exports = { - presets: ["@vue/cli-plugin-babel/preset"], - plugins: [ - "@babel/plugin-proposal-nullish-coalescing-operator", - "@babel/plugin-proposal-optional-chaining", + presets: [ + [ + '@vue/cli-plugin-babel/preset', + { + useBuiltIns: 'usage', + shippedProposals: true, + }, + ], ], };