File tree Expand file tree Collapse file tree 3 files changed +275
-74
lines changed Expand file tree Collapse file tree 3 files changed +275
-74
lines changed Original file line number Diff line number Diff line change 62
62
"typescript-eslint" : " ^8.43.0" ,
63
63
"vite" : " catalog:" ,
64
64
"vitest" : " ^3.2.4" ,
65
- "vue" : " catalog: "
65
+ "vue" : " https://pkg.pr.new/vue@13926 "
66
66
},
67
67
"simple-git-hooks" : {
68
68
"pre-commit" : " pnpm exec lint-staged --concurrent false"
Original file line number Diff line number Diff line change @@ -158,6 +158,17 @@ export interface Options {
158
158
isProduction : boolean | undefined ,
159
159
getHash : ( text : string ) => string ,
160
160
) => string )
161
+
162
+ /**
163
+ * LRUCache options for the compiler.
164
+ * see https://isaacs.github.io/node-lru-cache/
165
+ */
166
+ compilerCacheOptions ?: {
167
+ parse ?: Record < string , any >
168
+ templateUsageCheck ?: Record < string , any >
169
+ tsConfig ?: Record < string , any >
170
+ fileToScope ?: Record < string , any >
171
+ }
161
172
}
162
173
163
174
/**
@@ -389,6 +400,14 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin<Api> {
389
400
compiler . invalidateTypeCache ( file )
390
401
} )
391
402
}
403
+
404
+ // @ts -expect-error required 3.6+
405
+ if ( compiler . configureCacheOptions ) {
406
+ // @ts -expect-error required 3.6+
407
+ compiler . configureCacheOptions (
408
+ options . value . features ?. compilerCacheOptions ,
409
+ )
410
+ }
392
411
} ,
393
412
394
413
resolveId : {
You can’t perform that action at this time.
0 commit comments