Skip to content

Commit 91d02de

Browse files
sxzzoumoussa98
authored andcommitted
refactor: replace deprecated shiki API
1 parent bf95383 commit 91d02de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/monaco/highlight.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import * as monaco from 'monaco-editor-core'
2-
import { getHighlighterCore } from 'shiki/core'
2+
import { createHighlighterCore } from 'shiki/core'
33
import { shikiToMonaco } from '@shikijs/monaco'
44

55
import langVue from 'shiki/langs/vue.mjs'
66
import themeDark from 'shiki/themes/dark-plus.mjs'
77
import themeLight from 'shiki/themes/light-plus.mjs'
88

99
export async function registerHighlighter() {
10-
const highlighter = await getHighlighterCore({
10+
const highlighter = await createHighlighterCore({
1111
themes: [themeDark, themeLight],
1212
langs: [langVue],
1313
loadWasm: import('shiki/wasm'),

0 commit comments

Comments
 (0)