|
|
@@ -88,7 +88,8 @@ export const transformFor = createStructuralDirectiveTransform(
|
|
|
helper(FRAGMENT),
|
|
|
undefined,
|
|
|
renderExp,
|
|
|
- `${fragmentFlag} /* ${PatchFlagNames[fragmentFlag]} */`,
|
|
|
+ fragmentFlag +
|
|
|
+ (__DEV__ ? ` /* ${PatchFlagNames[fragmentFlag]} */` : ``),
|
|
|
undefined,
|
|
|
undefined,
|
|
|
true /* isBlock */,
|
|
|
@@ -147,9 +148,10 @@ export const transformFor = createStructuralDirectiveTransform(
|
|
|
helper(FRAGMENT),
|
|
|
keyProperty ? createObjectExpression([keyProperty]) : undefined,
|
|
|
node.children,
|
|
|
- `${PatchFlags.STABLE_FRAGMENT} /* ${
|
|
|
- PatchFlagNames[PatchFlags.STABLE_FRAGMENT]
|
|
|
- } */`,
|
|
|
+ PatchFlags.STABLE_FRAGMENT +
|
|
|
+ (__DEV__
|
|
|
+ ? ` /* ${PatchFlagNames[PatchFlags.STABLE_FRAGMENT]} */`
|
|
|
+ : ``),
|
|
|
undefined,
|
|
|
undefined,
|
|
|
true
|