diff --git a/src/compiler/preprocess/index.ts b/src/compiler/preprocess/index.ts index 51668a93f7..2faa3b97f2 100644 --- a/src/compiler/preprocess/index.ts +++ b/src/compiler/preprocess/index.ts @@ -8,7 +8,7 @@ export interface PreprocessorGroup { markup?: (options: { content: string; filename: string; - }) => Processed; + }) => Processed | Promise; style?: Preprocessor; script?: Preprocessor; } @@ -17,7 +17,7 @@ export type Preprocessor = (options: { content: string; attributes: Record; filename?: string; -}) => Processed; +}) => Processed | Promise; function parse_attributes(str: string) { const attrs = {};