We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21eae48 commit b6938a1Copy full SHA for b6938a1
packages/rehype-shiki/src/index.mjs
@@ -24,6 +24,8 @@ const { shiki, getLanguageDisplayName, highlightToHast, highlightToHtml } =
24
transformerTwoslash({
25
langs: ['ts', 'js', 'cjs', 'mjs'],
26
// throws: false,
27
+ onTwoslashError: error => JSON.stringify(error),
28
+ onShikiError: error => JSON.stringify(error),
29
}),
30
],
31
// We use the faster WASM engine on the server instead of the web-optimized version.
0 commit comments