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