From 155cc1a4dcb274595db520a7d137c1afaca39ab3 Mon Sep 17 00:00:00 2001 From: Innei Date: Fri, 28 Jun 2024 11:53:03 +0800 Subject: [PATCH] chore: update shiki Signed-off-by: Innei --- src/components/ui/code-highlighter/shiki/Shiki.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ui/code-highlighter/shiki/Shiki.tsx b/src/components/ui/code-highlighter/shiki/Shiki.tsx index 375bbb5c19..583be19d34 100644 --- a/src/components/ui/code-highlighter/shiki/Shiki.tsx +++ b/src/components/ui/code-highlighter/shiki/Shiki.tsx @@ -15,14 +15,14 @@ export interface ShikiProps { const codeHighlighterPromise = (async () => { if (isServerSide) return - const [{ getHighlighterCore }, getWasm, { codeHighlighter }] = + const [{ createHighlighterCore }, getWasm, { codeHighlighter }] = await Promise.all([ import('shiki/core'), import('shiki/wasm').then((m) => m.default), import('./core'), ]) - const core = await getHighlighterCore({ + const core = await createHighlighterCore({ themes: [ import('shiki/themes/github-light.mjs'), import('shiki/themes/github-dark.mjs'),