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
haoqunjiang committed Jan 8, 2024
1 parent 2701355 commit ecb3b47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/compiler-core/src/parser.ts
Original file line number Diff line number Diff line change
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 ecb3b47

Please sign in to comment.