Revert "wip: allow scriptCompiled to be cached on sfc descriptor"

This reverts commit 737ef424a0.
This commit is contained in:
Evan You 2020-11-19 20:02:27 -05:00
parent 6806facfa1
commit 9db42889e6

View 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: []