refactor(babel): use corejs

This commit is contained in:
pan93412 2022-01-26 13:44:28 +08:00
parent ebd863f5b6
commit e6abbe244b
No known key found for this signature in database
GPG Key ID: 42154B1B1CFE3377

View File

@ -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,
},
],
],
};