]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
wip: fix native template compat
authorEvan You <yyx990803@gmail.com>
Tue, 4 May 2021 22:10:57 +0000 (18:10 -0400)
committerEvan You <yyx990803@gmail.com>
Tue, 4 May 2021 22:26:28 +0000 (18:26 -0400)
packages/compiler-core/src/parse.ts

index 579222ec9c7c79145294ef39ebb8736fc5e88322..9580bdea232d35eb9e35944ffaca22b20f63d295 100644 (file)
@@ -209,7 +209,7 @@ function parseChildren(
             !node.props.some(
               p =>
                 p.type === NodeTypes.DIRECTIVE &&
-                (p.name === 'if' || p.name === 'for' || p.name === 'slot')
+                isSpecialTemplateDirective(p.name)
             )
           ) {
             __DEV__ &&