Skip to content

Commit

Permalink
fix(parser): skip compat mode check for SFC root <template> tags (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sodatea committed Jan 9, 2024
1 parent 7976f70 commit 923d560
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/compiler-core/src/parser.ts
Expand Up @@ -692,6 +692,7 @@ function onCloseTag(el: ElementNode, end: number, isImplied = false) {
}

if (
!tokenizer.inSFCRoot &&
isCompatEnabled(
CompilerDeprecationTypes.COMPILER_NATIVE_TEMPLATE,
currentOptions,
Expand Down

0 comments on commit 923d560

Please sign in to comment.