Skip to content

Commit 10a6f78

Browse files
committedJan 20, 2025
fix(core): soft require engine options
1 parent 613d35b commit 10a6f78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/core/src/constructors/internal.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function createShikiInternal(options: HighlighterCoreOptions): Prom
1616
warnDeprecated('`loadWasm` option is deprecated. Use `engine: createOnigurumaEngine(loadWasm)` instead.')
1717
}
1818
if (!options.engine) {
19-
throw new Error('`engine` option is required.')
19+
warnDeprecated('`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.')
2020
}
2121

2222
const [

0 commit comments

Comments
 (0)
Please sign in to comment.