File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import type {
10
10
} from 'vue/compiler-sfc'
11
11
import type * as _compiler from 'vue/compiler-sfc'
12
12
/* eslint-enable import/no-duplicates */
13
+ import { version } from '../package.json'
13
14
import { resolveCompiler } from './compiler'
14
15
import { parseVueRequest } from './utils/query'
15
16
import { getDescriptor , getSrcDescriptor } from './utils/descriptorCache'
@@ -130,6 +131,16 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {
130
131
return {
131
132
name : 'vite:vue' ,
132
133
134
+ api : {
135
+ get options ( ) {
136
+ return options
137
+ } ,
138
+ set options ( value ) {
139
+ options = value
140
+ } ,
141
+ version,
142
+ } ,
143
+
133
144
handleHotUpdate ( ctx ) {
134
145
if ( options . compiler . invalidateTypeCache ) {
135
146
options . compiler . invalidateTypeCache ( ctx . file )
Original file line number Diff line number Diff line change 12
12
"noImplicitOverride" : true ,
13
13
"noUnusedLocals" : true ,
14
14
"esModuleInterop" : true ,
15
- "baseUrl" : " ."
15
+ "baseUrl" : " ." ,
16
+ "resolveJsonModule" : true
16
17
}
17
18
}
You can’t perform that action at this time.
0 commit comments