Skip to content

Commit b6938a1

Browse files
committed
[test] stringify errors
1 parent 21eae48 commit b6938a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/rehype-shiki/src/index.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ const { shiki, getLanguageDisplayName, highlightToHast, highlightToHtml } =
2424
transformerTwoslash({
2525
langs: ['ts', 'js', 'cjs', 'mjs'],
2626
// throws: false,
27+
onTwoslashError: error => JSON.stringify(error),
28+
onShikiError: error => JSON.stringify(error),
2729
}),
2830
],
2931
// We use the faster WASM engine on the server instead of the web-optimized version.

0 commit comments

Comments
 (0)