From e26920a5def2ea60f4d34a09a4553c78477562d0 Mon Sep 17 00:00:00 2001 From: Fuma Nama <76240755+fuma-nama@users.noreply.github.com> Date: Sun, 27 Oct 2024 21:43:13 +0800 Subject: [PATCH] fix(core): `createdBundledHighlighter` cause wasm engine to be loaded (#819) --- 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,