fix(compiler): exclude BAIL flag in annotations

This commit is contained in:
Evan You 2019-10-03 15:17:45 -04:00
parent 227ad034f0
commit 4dea23f79e

View File

@ -122,8 +122,9 @@ export const transformElement: NodeTransform = (node, context) => {
}
if (__DEV__) {
const flagNames = Object.keys(PatchFlagNames)
.filter(n => patchFlag & Number(n))
.map(n => PatchFlagNames[n as any])
.map(Number)
.filter(n => n > 0 && patchFlag & n)
.map(n => PatchFlagNames[n])
.join(`, `)
args.push(patchFlag + ` /* ${flagNames} */`)
} else {