From 7746e7f20cf465d867a2732e205a183752a2aee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anne=20L=27H=C3=B4te?= Date: Mon, 24 Aug 2020 17:26:28 +0200 Subject: [PATCH] build: Add @babel/plugin-proposal-optional-chaining as Babel plugin --- babel.config.js | 3 +++ package.json | 1 + 2 files changed, 4 insertions(+) diff --git a/babel.config.js b/babel.config.js index ba179669a..bb5ee5e8a 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,5 +1,8 @@ module.exports = { presets: [ '@vue/app' + ], + plugins: [ + '@babel/plugin-proposal-optional-chaining' ] } diff --git a/package.json b/package.json index 60615eb7f..7a88e3978 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "vue-i18n": "^8.18.2" }, "devDependencies": { + "@babel/plugin-proposal-optional-chaining": "^7.11.0", "@kazupon/vue-i18n-loader": "^0.5.0", "@testing-library/jest-dom": "^5.11.3", "@vue/cli-plugin-babel": "^4.5.4",