File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
packages/compiler-sfc/src Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,7 @@ export interface SFCParseOptions {
22
22
pad ?: boolean | 'line' | 'space'
23
23
ignoreEmpty ?: boolean
24
24
compiler ?: TemplateCompiler
25
-
26
25
defaultScriptLang ?: string
27
- defaultScriptSetupLang ?: string
28
26
}
29
27
30
28
export interface SFCBlock {
@@ -99,8 +97,7 @@ export function parse(
99
97
pad = false ,
100
98
ignoreEmpty = true ,
101
99
compiler = CompilerDOM ,
102
- defaultScriptLang,
103
- defaultScriptSetupLang
100
+ defaultScriptLang
104
101
} : SFCParseOptions = { }
105
102
) : SFCParseResult {
106
103
const sourceKey =
@@ -195,9 +192,8 @@ export function parse(
195
192
case 'script' :
196
193
const scriptBlock = createBlock ( node , source , pad ) as SFCScriptBlock
197
194
const isSetup = ! ! scriptBlock . attrs . setup
198
-
199
195
if ( isSetup && ! descriptor . scriptSetup ) {
200
- scriptBlock . lang ??= defaultScriptSetupLang ?? defaultScriptLang
196
+ scriptBlock . lang ??= defaultScriptLang
201
197
descriptor . scriptSetup = scriptBlock
202
198
break
203
199
}
You can’t perform that action at this time.
0 commit comments