Skip to content

Commit 930648d

Browse files
authored
perf(twoslash): optimize twoslash cache (#4939)
1 parent f8c4e0a commit 930648d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/.vitepress/config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ export default withPwa(defineConfig({
8181
},
8282
},
8383
includesMap: new Map([['imports', `// ---cut-start---\n${FILE_IMPORTS}\n// ---cut-end---`]]),
84-
typesCache: createFileSystemTypesCache(),
84+
typesCache: createFileSystemTypesCache({
85+
dir: resolve(__dirname, 'cache', 'twoslash'),
86+
}),
8587
}),
8688
],
8789
languages: ['js', 'ts'],

0 commit comments

Comments
 (0)