From: Evan You Date: Tue, 4 May 2021 22:10:57 +0000 (-0400) Subject: wip: fix native template compat X-Git-Tag: v3.1.0-beta.1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae0fb14305b9e8f0cfe2a269c45362397d109edc;p=thirdparty%2Fvuejs%2Fcore.git wip: fix native template compat --- diff --git a/packages/compiler-core/src/parse.ts b/packages/compiler-core/src/parse.ts index 579222ec9c..9580bdea23 100644 --- a/packages/compiler-core/src/parse.ts +++ b/packages/compiler-core/src/parse.ts @@ -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__ &&