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 (
|
if (
|
||||||
|
!tokenizer.inSFCRoot &&
|
||||||
isCompatEnabled(
|
isCompatEnabled(
|
||||||
CompilerDeprecationTypes.COMPILER_NATIVE_TEMPLATE,
|
CompilerDeprecationTypes.COMPILER_NATIVE_TEMPLATE,
|
||||||
currentOptions,
|
currentOptions,
|
||||||
|
|
Loading…
Reference in New Issue