Skip to content

Commit

Permalink
Revert "wip: allow scriptCompiled to be cached on sfc descriptor"
Browse files Browse the repository at this point in the history
This reverts commit 737ef42.
  • Loading branch information
yyx990803 committed Nov 20, 2020
1 parent 6806fac commit 9db4288
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions packages/compiler-sfc/src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)[]
Expand Down Expand Up @@ -98,7 +97,6 @@ export function parse(
template: null,
script: null,
scriptSetup: null,
scriptCompiled: null,
styles: [],
customBlocks: [],
cssVars: []
Expand Down

0 comments on commit 9db4288

Please sign in to comment.