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 6262 "typescript-eslint" : " ^8.43.0" ,
6363 "vite" : " catalog:" ,
6464 "vitest" : " ^3.2.4" ,
65- "vue" : " catalog: "
65+ "vue" : " https://pkg.pr.new/vue@13926 "
6666 },
6767 "simple-git-hooks" : {
6868 "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 {
158158 isProduction : boolean | undefined ,
159159 getHash : ( text : string ) => string ,
160160 ) => 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+ }
161172 }
162173
163174 /**
@@ -389,6 +400,14 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin<Api> {
389400 compiler . invalidateTypeCache ( file )
390401 } )
391402 }
403+
404+ // @ts -expect-error
405+ if ( compiler . configureCacheOptions ) {
406+ // @ts -expect-error
407+ compiler . configureCacheOptions (
408+ options . value . features ?. compilerCacheOptions ,
409+ )
410+ }
392411 } ,
393412
394413 resolveId : {
You can’t perform that action at this time.
0 commit comments