File tree Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -85,20 +85,24 @@ export function useStore(
85
85
{ deep : true , immediate : true } ,
86
86
)
87
87
88
- watch ( vueVersion , async ( version ) => {
89
- if ( version ) {
90
- const compilerUrl = `https://cdn.jsdelivr.net/npm/@vue/compiler-sfc@${ version } /dist/compiler-sfc.esm-browser.js`
91
- loading . value = true
92
- compiler . value = await import ( /* @vite -ignore */ compilerUrl ) . finally (
93
- ( ) => ( loading . value = false ) ,
94
- )
95
- console . info ( `[@vue/repl] Now using Vue version: ${ version } ` )
96
- } else {
97
- // reset to default
98
- compiler . value = defaultCompiler
99
- console . info ( `[@vue/repl] Now using default Vue version` )
100
- }
101
- } )
88
+ watch (
89
+ vueVersion ,
90
+ async ( version ) => {
91
+ if ( version ) {
92
+ const compilerUrl = `https://cdn.jsdelivr.net/npm/@vue/compiler-sfc@${ version } /dist/compiler-sfc.esm-browser.js`
93
+ loading . value = true
94
+ compiler . value = await import ( /* @vite -ignore */ compilerUrl ) . finally (
95
+ ( ) => ( loading . value = false ) ,
96
+ )
97
+ console . info ( `[@vue/repl] Now using Vue version: ${ version } ` )
98
+ } else {
99
+ // reset to default
100
+ compiler . value = defaultCompiler
101
+ console . info ( `[@vue/repl] Now using default Vue version` )
102
+ }
103
+ } ,
104
+ { immediate : true } ,
105
+ )
102
106
103
107
watch (
104
108
sfcOptions ,
You can’t perform that action at this time.
0 commit comments