|
|
@@ -32,7 +32,7 @@ import { processExpression } from './transformExpression'
|
|
|
import { validateBrowserExpression } from '../validateExpression'
|
|
|
import { CREATE_COMMENT, FRAGMENT } from '../runtimeHelpers'
|
|
|
import { findDir, findProp, getMemoedVNodeCall, injectProp } from '../utils'
|
|
|
-import { PatchFlagNames, PatchFlags } from '@vue/shared'
|
|
|
+import { PatchFlags } from '@vue/shared'
|
|
|
|
|
|
export const transformIf: NodeTransform = createStructuralDirectiveTransform(
|
|
|
/^(if|else|else-if)$/,
|
|
|
@@ -264,7 +264,6 @@ function createChildrenCodegenNode(
|
|
|
return vnodeCall
|
|
|
} else {
|
|
|
let patchFlag = PatchFlags.STABLE_FRAGMENT
|
|
|
- let patchFlagText = PatchFlagNames[PatchFlags.STABLE_FRAGMENT]
|
|
|
// check if the fragment actually contains a single valid child with
|
|
|
// the rest being comments
|
|
|
if (
|
|
|
@@ -273,7 +272,6 @@ function createChildrenCodegenNode(
|
|
|
children.filter(c => c.type !== NodeTypes.COMMENT).length === 1
|
|
|
) {
|
|
|
patchFlag |= PatchFlags.DEV_ROOT_FRAGMENT
|
|
|
- patchFlagText += `, ${PatchFlagNames[PatchFlags.DEV_ROOT_FRAGMENT]}`
|
|
|
}
|
|
|
|
|
|
return createVNodeCall(
|