build: avoid shipping patch flag name strings in prod
This commit is contained in:
@@ -251,9 +251,10 @@ function createChildrenCodegenNode(
|
||||
helper(FRAGMENT),
|
||||
createObjectExpression([keyProperty]),
|
||||
children,
|
||||
`${PatchFlags.STABLE_FRAGMENT} /* ${
|
||||
PatchFlagNames[PatchFlags.STABLE_FRAGMENT]
|
||||
} */`,
|
||||
PatchFlags.STABLE_FRAGMENT +
|
||||
(__DEV__
|
||||
? ` /* ${PatchFlagNames[PatchFlags.STABLE_FRAGMENT]} */`
|
||||
: ``),
|
||||
undefined,
|
||||
undefined,
|
||||
true,
|
||||
|
||||
Reference in New Issue
Block a user