Commit 3b898dc 1 parent c8887d6 commit 3b898dc Copy full SHA for 3b898dc
File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import type {
18
18
} from 'vue/compiler-sfc'
19
19
import type { OutputModes } from './types'
20
20
import type { editor } from 'monaco-editor-core'
21
- import { type ImportMap , mergeImportMap } from './import-map'
21
+ import { type ImportMap , mergeImportMap , useVueImportMap } from './import-map'
22
22
23
23
import welcomeSFCCode from './template/welcome.vue?raw'
24
24
import newSFCCode from './template/new-sfc.vue?raw'
@@ -35,7 +35,7 @@ export function useStore(
35
35
welcomeSFC : welcomeSFCCode ,
36
36
newSFC : newSFCCode ,
37
37
} ) ,
38
- builtinImportMap = ref ( { } ) ,
38
+ builtinImportMap = undefined ! , // set later
39
39
40
40
errors = ref ( [ ] ) ,
41
41
showOutput = ref ( false ) ,
@@ -51,6 +51,7 @@ export function useStore(
51
51
} : Partial < StoreState > = { } ,
52
52
serializedState ?: string ,
53
53
) : ReplStore {
54
+ builtinImportMap ||= useVueImportMap ( ) . importMap
54
55
const loading = ref ( false )
55
56
56
57
function applyBuiltinImportMap ( ) {
You can’t perform that action at this time.
0 commit comments