|
@@ -36,7 +36,7 @@ import { findDir, findProp, getMemoedVNodeCall, injectProp } from '../utils'
|
|
|
import { PatchFlags } from '@vue/shared'
|
|
import { PatchFlags } from '@vue/shared'
|
|
|
|
|
|
|
|
export const transformIf: NodeTransform = createStructuralDirectiveTransform(
|
|
export const transformIf: NodeTransform = createStructuralDirectiveTransform(
|
|
|
- /^(if|else|else-if)$/,
|
|
|
|
|
|
|
+ /^(?:if|else|else-if)$/,
|
|
|
(node, dir, context) => {
|
|
(node, dir, context) => {
|
|
|
return processIf(node, dir, context, (ifNode, branch, isRoot) => {
|
|
return processIf(node, dir, context, (ifNode, branch, isRoot) => {
|
|
|
// #1587: We need to dynamically increment the key based on the current
|
|
// #1587: We need to dynamically increment the key based on the current
|