We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca9d417 commit 67b1a8cCopy full SHA for 67b1a8c
src/parsers.ts
@@ -23,9 +23,9 @@ async function advancedParse(
23
defaultParser: Parser,
24
options: ResolvedOptions,
25
): Promise<AST> {
26
- const preprocessedText = defaultParser.preprocess
+ const preprocessedText = await (defaultParser.preprocess
27
? defaultParser.preprocess(text, options)
28
- : text;
+ : text);
29
let ast = await defaultParser.parse(preprocessedText, options);
30
31
if (parserName === 'svelte') {
0 commit comments