Skip to content

Commit

Permalink
fix(core): createdBundledHighlighter cause wasm engine to be loaded (
Browse files Browse the repository at this point in the history
  • Loading branch information
fuma-nama authored Oct 27, 2024
1 parent 162a23f commit e26920a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/constructors/bundle-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function createdBundledHighlighter<BundledLangs extends string, BundledTh
.map(i => resolveLang(i as BundledLangs))

const core = await createHighlighterCore({
engine: engine(),
engine: options.engine ?? engine(),
...options,
themes: _themes,
langs,
Expand Down

0 comments on commit e26920a

Please sign in to comment.