File tree 1 file changed +4
-15
lines changed
1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -24,26 +24,15 @@ function render(
24
24
const baseElement = customBaseElement || customContainer || document . body
25
25
const container = customContainer || baseElement . appendChild ( div )
26
26
27
- const plugins = mountOptions . global ?. plugins || [ ]
28
-
29
- if ( store ) {
30
- const { createStore} = require ( 'vuex' )
31
- plugins . push ( createStore ( store ) )
32
- }
33
-
34
- if ( routes ) {
35
- const requiredRouter = require ( 'vue-router' )
36
- const { createRouter, createWebHistory} =
37
- requiredRouter . default || requiredRouter
38
-
39
- const routerPlugin = createRouter ( { history : createWebHistory ( ) , routes} )
40
- plugins . push ( routerPlugin )
27
+ if ( store || routes ) {
28
+ console . warn ( `Providing 'store' or 'routes' options is now deprecated.
29
+ You need to create a router/vuex plugin and provide it through 'global.plugins'.
30
+ See here for more information:` )
41
31
}
42
32
43
33
const wrapper = mount ( Component , {
44
34
...mountOptions ,
45
35
attachTo : container ,
46
- global : { ...mountOptions . global , plugins} ,
47
36
} )
48
37
49
38
// this removes the additional "data-v-app" div node from VTU:
You can’t perform that action at this time.
0 commit comments