Skip to content

Commit e26920a

Browse files
authored
fix(core): createdBundledHighlighter cause wasm engine to be loaded (#819)
1 parent 162a23f commit e26920a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/constructors/bundle-factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export function createdBundledHighlighter<BundledLangs extends string, BundledTh
120120
.map(i => resolveLang(i as BundledLangs))
121121

122122
const core = await createHighlighterCore({
123-
engine: engine(),
123+
engine: options.engine ?? engine(),
124124
...options,
125125
themes: _themes,
126126
langs,

0 commit comments

Comments
 (0)