From da286d4439b437f5b095fc2b05720521857e30bd Mon Sep 17 00:00:00 2001 From: Pan Date: Thu, 1 Nov 2018 10:41:19 +0800 Subject: [PATCH] fix bug --- .env | 1 - .env.development | 7 +++++++ package.json | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) delete mode 100644 .env diff --git a/.env b/.env deleted file mode 100644 index 31bc290a..00000000 --- a/.env +++ /dev/null @@ -1 +0,0 @@ -VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.env.development b/.env.development index 1d2d6c9f..c8765073 100644 --- a/.env.development +++ b/.env.development @@ -1 +1,8 @@ VUE_APP_BASE_API = '/api' + +// With this configuration, vue-cli uses babel-plugin-dynamic-import-node +// It only does one thing by converting all import() to require() +// So that all asynchronous components can be import synchronously using this plugin +// This configuration can significantly increase the speed of hot updates when you have a large number of pages +// https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/babel-preset-app/index.js +VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/package.json b/package.json index 90812d59..8fdcaa4a 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,7 @@ "xlsx": "^0.11.16" }, "devDependencies": { + "@babel/core": "7.0.0", "@babel/register": "7.0.0", "@vue/cli-plugin-babel": "3.0.5", "@vue/cli-plugin-eslint": "3.0.5",