Skip to content

Commit

Permalink
chore: update shiki
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jun 28, 2024
1 parent 6b5075f commit 155cc1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ui/code-highlighter/shiki/Shiki.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 155cc1a

Please sign in to comment.