From 9db42889e65a0e80cdbae5c19d76dab4f9fadb6d Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 19 Nov 2020 20:02:27 -0500 Subject: [PATCH] Revert "wip: allow scriptCompiled to be cached on sfc descriptor" This reverts commit 737ef424a0ca1eb3a856b737e269025fe0ced1d7. --- packages/compiler-sfc/src/parse.ts | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/packages/compiler-sfc/src/parse.ts b/packages/compiler-sfc/src/parse.ts index 3cd0b3aebad..4ec10b5eb74 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: []