diff --git a/packages/compiler-sfc/src/parse.ts b/packages/compiler-sfc/src/parse.ts index 3cd0b3ae..4ec10b5e 100644 --- a/packages/compiler-sfc/src/parse.ts +++ b/packages/compiler-sfc/src/parse.ts @@ -20,18 +20,6 @@ export interface SFCParseOptions { compiler?: TemplateCompiler } -export interface SFCDescriptor { - filename: string - source: string - template: SFCTemplateBlock | null - script: SFCScriptBlock | null - scriptSetup: SFCScriptBlock | null - scriptCompiled: SFCScriptBlock | null - styles: SFCStyleBlock[] - customBlocks: SFCBlock[] - cssVars: string[] -} - export interface SFCBlock { type: string content: string @@ -61,6 +49,17 @@ export interface SFCStyleBlock extends SFCBlock { module?: string | boolean } +export interface SFCDescriptor { + filename: string + source: string + template: SFCTemplateBlock | null + script: SFCScriptBlock | null + scriptSetup: SFCScriptBlock | null + styles: SFCStyleBlock[] + customBlocks: SFCBlock[] + cssVars: string[] +} + export interface SFCParseResult { descriptor: SFCDescriptor errors: (CompilerError | SyntaxError)[] @@ -98,7 +97,6 @@ export function parse( template: null, script: null, scriptSetup: null, - scriptCompiled: null, styles: [], customBlocks: [], cssVars: []