From: Evan You Date: Fri, 20 Nov 2020 01:02:27 +0000 (-0500) Subject: Revert "wip: allow scriptCompiled to be cached on sfc descriptor" X-Git-Tag: v3.0.3~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9db42889e65a0e80cdbae5c19d76dab4f9fadb6d;p=thirdparty%2Fvuejs%2Fcore.git Revert "wip: allow scriptCompiled to be cached on sfc descriptor" This reverts commit 737ef424a0ca1eb3a856b737e269025fe0ced1d7. --- diff --git a/packages/compiler-sfc/src/parse.ts b/packages/compiler-sfc/src/parse.ts index 3cd0b3aeba..4ec10b5eb7 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: []