File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed
generator/codemods/global-api/__testfixtures__ Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
1
import { createApp } from 'vue' ;
2
2
import App from './App.vue' ;
3
3
4
- createApp ( App ) . mount ( '#app' ) ;
4
+ const app = createApp ( App ) ;
5
+ app . mount ( '#app' ) ;
Original file line number Diff line number Diff line change 1
1
import { createApp , h } from 'vue' ;
2
2
import App from './App.vue' ;
3
3
4
- createApp ( {
4
+ const app = createApp ( {
5
5
myOption : 'hello!' ,
6
6
render : ( ) => h ( App ) ,
7
- } ) . mount ( '#app' ) ;
7
+ } ) ;
8
+
9
+ app . mount ( '#app' ) ;
Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ import { createApp } from 'vue';
2
2
import App from './App.vue' ;
3
3
import router from './router' ;
4
4
5
- createApp ( App ) . use ( router ) . mount ( '#app' ) ;
5
+ const app = createApp ( App ) . use ( router ) ;
6
+ app . mount ( '#app' ) ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import App from './App.vue';
3
3
import store from './store' ;
4
4
import anotherStore from './another-store' ;
5
5
6
- createApp ( App ) . use ( store ) . mount ( '#app' ) ;
7
-
8
- createApp ( App ) . use ( anotherStore ) . mount ( '#app' ) ;
6
+ const app = createApp ( { } ) . use ( h => h ( App ) ) ;
7
+ app . mount ( '#app' ) ;
8
+ const app = createApp ( { } ) . use ( h => h ( App ) ) ;
9
+ app . mount ( '#app' ) ;
You can’t perform that action at this time.
0 commit comments