fumadocs-core 13.4.2 → 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() :
|
|
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
|
});
|