File tree 4 files changed +11
-3
lines changed
4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"presets" : [
3
3
[" env" , { "modules" : false }]
4
+ ],
5
+ "plugins" : [
6
+ " syntax-dynamic-import"
4
7
]
5
8
}
Original file line number Diff line number Diff line change 33
33
"autoprefixer" : " ^6.7.7" ,
34
34
"babel-core" : " ^6.24.1" ,
35
35
"babel-loader" : " ^6.4.1" ,
36
+ "babel-plugin-syntax-dynamic-import" : " ^6.18.0" ,
36
37
"babel-preset-env" : " ^1.4.0" ,
37
38
"css-loader" : " ^0.28.0" ,
38
39
"file-loader" : " ^0.11.1" ,
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ import Router from 'vue-router'
4
4
Vue . use ( Router )
5
5
6
6
// route-level code splitting
7
- const createListView = id => ( ) => System . import ( '../views/CreateListView' ) . then ( m => m . default ( id ) )
8
- const ItemView = ( ) => System . import ( '../views/ItemView.vue' )
9
- const UserView = ( ) => System . import ( '../views/UserView.vue' )
7
+ const createListView = id => ( ) => import ( '../views/CreateListView' ) . then ( m => m . default ( id ) )
8
+ const ItemView = ( ) => import ( '../views/ItemView.vue' )
9
+ const UserView = ( ) => import ( '../views/UserView.vue' )
10
10
11
11
export function createRouter ( ) {
12
12
return new Router ( {
Original file line number Diff line number Diff line change @@ -362,6 +362,10 @@ babel-plugin-syntax-async-functions@^6.8.0:
362
362
version "6.13.0"
363
363
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95"
364
364
365
+ babel-plugin-syntax-dynamic-import@^6.18.0 :
366
+ version "6.18.0"
367
+ resolved "https://registry.yarnpkg.com/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz#8d6a26229c83745a9982a441051572caa179b1da"
368
+
365
369
babel-plugin-syntax-exponentiation-operator@^6.8.0 :
366
370
version "6.13.0"
367
371
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de"
You can’t perform that action at this time.
0 commit comments