Skip to content

Commit 67b1a8c

Browse files
committed
chore: await preprocessing method
1 parent ca9d417 commit 67b1a8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parsers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ async function advancedParse(
2323
defaultParser: Parser,
2424
options: ResolvedOptions,
2525
): Promise<AST> {
26-
const preprocessedText = defaultParser.preprocess
26+
const preprocessedText = await (defaultParser.preprocess
2727
? defaultParser.preprocess(text, options)
28-
: text;
28+
: text);
2929
let ast = await defaultParser.parse(preprocessedText, options);
3030

3131
if (parserName === 'svelte') {

0 commit comments

Comments
 (0)