Skip to content

Commit

Permalink
fix: avoid using deprecated APIs in core
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 27, 2024
1 parent 92fec4a commit cd18449
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/shiki/src/bundle-full.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const createHighlighter = /* @__PURE__ */ createdBundledHighlighter<
>({
langs: bundledLanguages,
themes: bundledThemes,
engine: () => createOnigurumaEngine(getWasmInlined),
engine: () => createOnigurumaEngine(import('shiki/wasm')),
})

export const {
Expand Down
2 changes: 1 addition & 1 deletion packages/shiki/src/bundle-web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const createHighlighter = /* @__PURE__ */ createdBundledHighlighter<
>({
langs: bundledLanguages,
themes: bundledThemes,
engine: () => createOnigurumaEngine(getWasmInlined),
engine: () => createOnigurumaEngine(import('shiki/wasm')),
})

export const {
Expand Down

0 comments on commit cd18449

Please sign in to comment.