]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
Revert "wip: allow scriptCompiled to be cached on sfc descriptor"
authorEvan You <yyx990803@gmail.com>
Fri, 20 Nov 2020 01:02:27 +0000 (20:02 -0500)
committerEvan You <yyx990803@gmail.com>
Fri, 20 Nov 2020 01:02:27 +0000 (20:02 -0500)
This reverts commit 737ef424a0ca1eb3a856b737e269025fe0ced1d7.

packages/compiler-sfc/src/parse.ts

index 3cd0b3aebad3138596d565ce206941c4b513fa6e..4ec10b5eb74a56723ccaebf518327f2f6120cd96 100644 (file)
@@ -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: []