mirror of https://github.com/vuejs/core.git
fix(parser): skip compat mode check for SFC root `<template>` tags (#10034)
Fixes https://github.com/vitejs/vite-plugin-vue/issues/330
This commit is contained in:
parent
7976f7044e
commit
923d560d0b
|
@ -692,6 +692,7 @@ function onCloseTag(el: ElementNode, end: number, isImplied = false) {
|
|||
}
|
||||
|
||||
if (
|
||||
!tokenizer.inSFCRoot &&
|
||||
isCompatEnabled(
|
||||
CompilerDeprecationTypes.COMPILER_NATIVE_TEMPLATE,
|
||||
currentOptions,
|
||||
|
|
Loading…
Reference in New Issue