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__) { if (__DEV__) {
const flagNames = Object.keys(PatchFlagNames) const flagNames = Object.keys(PatchFlagNames)
.filter(n => patchFlag & Number(n)) .map(Number)
.map(n => PatchFlagNames[n as any]) .filter(n => n > 0 && patchFlag & n)
.map(n => PatchFlagNames[n])
.join(`, `) .join(`, `)
args.push(patchFlag + ` /* ${flagNames} */`) args.push(patchFlag + ` /* ${flagNames} */`)
} else { } else {