Skip to content

Commit d614908

Browse files
authored
fix: use bundler module resolution for twoslash (#1890)
1 parent 4220873 commit d614908

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/site-kit/src/lib/markdown/renderer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,8 @@ async function syntax_highlight({
11151115
compilerOptions: {
11161116
allowJs: true,
11171117
checkJs: true,
1118+
module: ts.ModuleKind.ESNext,
1119+
moduleResolution: ts.ModuleResolutionKind.Bundler,
11181120
types: ['svelte', '@sveltejs/kit', 'sv', '@sveltejs/sv-utils']
11191121
}
11201122
},

0 commit comments

Comments
 (0)