diff --git a/babel.config.js b/babel.config.js index e955840..8cd104a 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,5 +1,4 @@ module.exports = { - presets: [ - '@vue/cli-plugin-babel/preset' - ] -} + presets: ["@vue/cli-plugin-babel/preset"], + plugins: ["@babel/plugin-syntax-dynamic-import"], +}; diff --git a/package.json b/package.json index 5d7f762..54c3fd3 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "vue-router": "^3.3.2" }, "devDependencies": { + "@babel/plugin-syntax-dynamic-import": "^7.8.3", "@vue/cli-plugin-babel": "^4.3.0", "@vue/cli-plugin-eslint": "^4.3.0", "@vue/cli-service": "^4.3.0",