From 8f4826a697b59cc6164c8f7b6c14fa008935ee2e Mon Sep 17 00:00:00 2001 From: Fuma Nama Date: Sun, 27 Oct 2024 17:30:03 +0800 Subject: [PATCH] fix(core): `createdBundledHighlighter` cause wasm engine to be loaded --- packages/core/src/constructors/bundle-factory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/constructors/bundle-factory.ts b/packages/core/src/constructors/bundle-factory.ts index a1ccedaca..22ef6c60c 100644 --- a/packages/core/src/constructors/bundle-factory.ts +++ b/packages/core/src/constructors/bundle-factory.ts @@ -120,7 +120,7 @@ export function createdBundledHighlighter resolveLang(i as BundledLangs)) const core = await createHighlighterCore({ - engine: engine(), + engine: options.engine ?? engine(), ...options, themes: _themes, langs,