Skip to content

Commit

Permalink
fix: reduce shiki bundle
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Apr 18, 2024
1 parent d9dfd41 commit 2b7f89f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ui/code-highlighter/shiki/Shiki.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const codeHighlighterPromise = (async () => {
if (isServerSide) return
const [{ getHighlighterCore }, getWasm, { codeHighlighter }] =
await Promise.all([
import('shiki'),
import('shiki/core'),
import('shiki/wasm').then((m) => m.default),
import('./core'),
])
Expand Down

0 comments on commit 2b7f89f

Please sign in to comment.