File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,3 @@ ENV = 'development'
3
3
4
4
# base api
5
5
VUE_APP_BASE_API = ' /dev-api'
6
-
7
- # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
8
- # to control whether the babel-plugin-dynamic-import-node plugin is enabled.
9
- # It only does one thing by converting all import() to require().
10
- # This configuration can significantly increase the speed of hot updates,
11
- # when you have a large number of pages.
12
- # Detail: https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/babel-preset-app/index.js
13
-
14
- VUE_CLI_BABEL_TRANSPILE_MODULES = true
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
presets : [
3
+ // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
3
4
'@vue/cli-plugin-babel/preset'
4
- ]
5
+ ] ,
6
+ 'env' : {
7
+ 'development' : {
8
+ // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
9
+ // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
10
+ // https://panjiachen.github.io/vue-element-admin-site/guide/advanced/lazy-loading.html
11
+ 'plugins' : [ 'dynamic-import-node' ]
12
+ }
13
+ }
5
14
}
Original file line number Diff line number Diff line change 16
16
},
17
17
"dependencies" : {
18
18
"axios" : " 0.18.1" ,
19
+ "babel-plugin-dynamic-import-node" : " 2.3.3" ,
19
20
"clipboard" : " 2.0.4" ,
20
21
"codemirror" : " 5.45.0" ,
21
22
"core-js" : " 3.6.5" ,
You can’t perform that action at this time.
0 commit comments