Skip to content

Commit

Permalink
refactor(babel): use corejs
Browse files Browse the repository at this point in the history
  • Loading branch information
pan93412 committed Jan 26, 2022
1 parent ebd863f commit e6abbe2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -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,
},
],
],
};

0 comments on commit e6abbe2

Please sign in to comment.