fumadocs-core 13.4.3 → 13.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,7 @@ import {
21
21
  import {
22
22
  getSingletonHighlighter,
23
23
  createJavaScriptRegexEngine,
24
+ createWasmOnigEngine,
24
25
  bundledLanguages
25
26
  } from "shiki";
26
27
 
@@ -254,7 +255,7 @@ function rehypeCode(options = {}) {
254
255
  themeItems = [codeOptions.theme];
255
256
  }
256
257
  const highlighter = getSingletonHighlighter({
257
- engine: codeOptions.experimentalJSEngine ? createJavaScriptRegexEngine() : void 0,
258
+ engine: codeOptions.experimentalJSEngine ? createJavaScriptRegexEngine() : createWasmOnigEngine(import("shiki/wasm")),
258
259
  themes: themeItems.filter(Boolean),
259
260
  langs: codeOptions.langs ?? Object.keys(bundledLanguages)
260
261
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-core",
3
- "version": "13.4.3",
3
+ "version": "13.4.4",
4
4
  "description": "The library for building a documentation website in Next.js",
5
5
  "keywords": [
6
6
  "NextJs",