fix(core): generate fragment root with patchFlag + optimize fragment w/ patchFlag

This commit is contained in:
Evan You
2019-12-12 17:58:32 -05:00
parent efe39db023
commit ef50c333ce
3 changed files with 13 additions and 3 deletions

View File

@@ -79,7 +79,7 @@ export const transformFor = createStructuralDirectiveTransform(
helper(FRAGMENT),
`null`,
renderExp,
fragmentFlag + (__DEV__ ? ` /* ${PatchFlagNames[fragmentFlag]} */` : ``)
`${fragmentFlag} /* ${PatchFlagNames[fragmentFlag]} */`
])
]) as ForCodegenNode