fix(compiler): exclude BAIL flag in annotations
This commit is contained in:
parent
227ad034f0
commit
4dea23f79e
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user