From cd18449318e7d3713b906b8564dd7859420d315c Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 27 Sep 2024 15:05:01 +0800 Subject: [PATCH] fix: avoid using deprecated APIs in core --- packages/shiki/src/bundle-full.ts | 2 +- packages/shiki/src/bundle-web.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/shiki/src/bundle-full.ts b/packages/shiki/src/bundle-full.ts index 4c0510617..6e06dc639 100644 --- a/packages/shiki/src/bundle-full.ts +++ b/packages/shiki/src/bundle-full.ts @@ -32,7 +32,7 @@ export const createHighlighter = /* @__PURE__ */ createdBundledHighlighter< >({ langs: bundledLanguages, themes: bundledThemes, - engine: () => createOnigurumaEngine(getWasmInlined), + engine: () => createOnigurumaEngine(import('shiki/wasm')), }) export const { diff --git a/packages/shiki/src/bundle-web.ts b/packages/shiki/src/bundle-web.ts index ee4993757..dbbd85c6f 100644 --- a/packages/shiki/src/bundle-web.ts +++ b/packages/shiki/src/bundle-web.ts @@ -33,7 +33,7 @@ export const createHighlighter = /* @__PURE__ */ createdBundledHighlighter< >({ langs: bundledLanguages, themes: bundledThemes, - engine: () => createOnigurumaEngine(getWasmInlined), + engine: () => createOnigurumaEngine(import('shiki/wasm')), }) export const {