We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf95383 commit 91d02deCopy full SHA for 91d02de
src/monaco/highlight.ts
@@ -1,13 +1,13 @@
1
import * as monaco from 'monaco-editor-core'
2
-import { getHighlighterCore } from 'shiki/core'
+import { createHighlighterCore } from 'shiki/core'
3
import { shikiToMonaco } from '@shikijs/monaco'
4
5
import langVue from 'shiki/langs/vue.mjs'
6
import themeDark from 'shiki/themes/dark-plus.mjs'
7
import themeLight from 'shiki/themes/light-plus.mjs'
8
9
export async function registerHighlighter() {
10
- const highlighter = await getHighlighterCore({
+ const highlighter = await createHighlighterCore({
11
themes: [themeDark, themeLight],
12
langs: [langVue],
13
loadWasm: import('shiki/wasm'),
0 commit comments