Skip to content

Commit 9db4288

Browse files
committed
Revert "wip: allow scriptCompiled to be cached on sfc descriptor"
This reverts commit 737ef42.
1 parent 6806fac commit 9db4288

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

packages/compiler-sfc/src/parse.ts

+11-13
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,6 @@ export interface SFCParseOptions {
2020
compiler?: TemplateCompiler
2121
}
2222

23-
export interface SFCDescriptor {
24-
filename: string
25-
source: string
26-
template: SFCTemplateBlock | null
27-
script: SFCScriptBlock | null
28-
scriptSetup: SFCScriptBlock | null
29-
scriptCompiled: SFCScriptBlock | null
30-
styles: SFCStyleBlock[]
31-
customBlocks: SFCBlock[]
32-
cssVars: string[]
33-
}
34-
3523
export interface SFCBlock {
3624
type: string
3725
content: string
@@ -61,6 +49,17 @@ export interface SFCStyleBlock extends SFCBlock {
6149
module?: string | boolean
6250
}
6351

52+
export interface SFCDescriptor {
53+
filename: string
54+
source: string
55+
template: SFCTemplateBlock | null
56+
script: SFCScriptBlock | null
57+
scriptSetup: SFCScriptBlock | null
58+
styles: SFCStyleBlock[]
59+
customBlocks: SFCBlock[]
60+
cssVars: string[]
61+
}
62+
6463
export interface SFCParseResult {
6564
descriptor: SFCDescriptor
6665
errors: (CompilerError | SyntaxError)[]
@@ -98,7 +97,6 @@ export function parse(
9897
template: null,
9998
script: null,
10099
scriptSetup: null,
101-
scriptCompiled: null,
102100
styles: [],
103101
customBlocks: [],
104102
cssVars: []

0 commit comments

Comments
 (0)