We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99b49cf commit 80c40b3Copy full SHA for 80c40b3
packages/compiler-sfc/src/compileScript.ts
@@ -189,8 +189,6 @@ export function compileScript(
189
)
190
}
191
192
- const ctx = new ScriptCompileContext(sfc, options)
193
-
194
if (!scriptSetup) {
195
if (!script) {
196
throw new Error(`[@vue/compiler-sfc] SFC contains no <script> tags.`)
@@ -206,13 +204,6 @@ export function compileScript(
206
204
return processNormalScript(ctx, scopeId)
207
205
208
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
216
if (scriptSetupLang && !isJSOrTS) {
217
// do not process non js/ts script blocks
218
return scriptSetup
0 commit comments