Skip to content

Commit 80c40b3

Browse files
committed
chore: tweaks
1 parent 99b49cf commit 80c40b3

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/compiler-sfc/src/compileScript.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@ export function compileScript(
189189
)
190190
}
191191

192-
const ctx = new ScriptCompileContext(sfc, options)
193-
194192
if (!scriptSetup) {
195193
if (!script) {
196194
throw new Error(`[@vue/compiler-sfc] SFC contains no <script> tags.`)
@@ -206,13 +204,6 @@ export function compileScript(
206204
return processNormalScript(ctx, scopeId)
207205
}
208206

209-
if (script && scriptLang !== scriptSetupLang) {
210-
throw new Error(
211-
`[@vue/compiler-sfc] <script> and <script setup> must have the same ` +
212-
`language type.`,
213-
)
214-
}
215-
216207
if (scriptSetupLang && !isJSOrTS) {
217208
// do not process non js/ts script blocks
218209
return scriptSetup

0 commit comments

Comments
 (0)