Skip to content

Commit f76e600

Browse files
committed
chore: await preprocessing method
1 parent 0e46793 commit f76e600

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
@@ -14,9 +14,9 @@ async function advancedParse(
1414
defaultParser: Parser,
1515
options: ResolvedOptions,
1616
): Promise<AST> {
17-
const preprocessedText = defaultParser.preprocess
17+
const preprocessedText = await (defaultParser.preprocess
1818
? defaultParser.preprocess(text, options)
19-
: text;
19+
: text);
2020
let ast = await defaultParser.parse(preprocessedText, options);
2121

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

0 commit comments

Comments
 (0)