Skip to content

Commit 923d560

Browse files
authored
fix(parser): skip compat mode check for SFC root <template> tags (#10034)
Fixes vitejs/vite-plugin-vue#330
1 parent 7976f70 commit 923d560

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/compiler-core/src/parser.ts

+1
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,7 @@ function onCloseTag(el: ElementNode, end: number, isImplied = false) {
692692
}
693693

694694
if (
695+
!tokenizer.inSFCRoot &&
695696
isCompatEnabled(
696697
CompilerDeprecationTypes.COMPILER_NATIVE_TEMPLATE,
697698
currentOptions,

0 commit comments

Comments
 (0)