diff --git a/src/components/DocumentView/CodeBlock/highlight.ts b/src/components/DocumentView/CodeBlock/highlight.ts index fe46edda5..f0a470a12 100644 --- a/src/components/DocumentView/CodeBlock/highlight.ts +++ b/src/components/DocumentView/CodeBlock/highlight.ts @@ -344,7 +344,10 @@ async function loadHighlighterLanguage( } const loaders: { [key: string]: LanguageInput } = { - javascript: () => import('shiki/langs/javascript.mjs'), + javascript: () => { + console.log(`importing javascript`); + return import('shiki/langs/javascript.mjs') + }, typescript: () => import('shiki/langs/typescript.mjs'), tsx: () => import('shiki/langs/tsx.mjs'), } \ No newline at end of file