From 3278c10e6d1ae0f5983d3d89192bc0b0cb58af4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=B5=E6=96=87=E7=9B=B8=20Zhang=20Wenxiang=20=28?= =?UTF-8?q?=E6=97=8B=E9=A2=A8=E4=B9=8B=E9=9F=B3=20GoneTone=29?= Date: Tue, 27 Apr 2021 21:00:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20@babel/plugin-proposal-nul?= =?UTF-8?q?lish-coalescing-operator=20=E4=BF=AE=E5=BE=A9=E7=B7=A8=E8=AD=AF?= =?UTF-8?q?=E9=8C=AF=E8=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- babel.config.js | 3 +++ package.json | 1 + 2 files changed, 4 insertions(+) diff --git a/babel.config.js b/babel.config.js index e955840..ca947ac 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,5 +1,8 @@ module.exports = { presets: [ '@vue/cli-plugin-babel/preset' + ], + plugins: [ + '@babel/plugin-proposal-nullish-coalescing-operator' ] } diff --git a/package.json b/package.json index a97cdca..146f746 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "vuex": "^4.0.0-0" }, "devDependencies": { + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.13.8", "@intlify/vue-i18n-loader": "^2.0.0-rc.1", "@vue/cli-plugin-babel": "~4.5.0", "@vue/cli-plugin-eslint": "~4.5.0",