feat(minifier): invert `!0` and `!1` in place for boolean context to `1` and `0` (#26050)
improve negation of 1 and 0 to 0 and 1 in boolean context previously only `!!0` and `!!1` could be inlined to `1` and `0` and now `!0` and `!1` will also be inlined, this change allows us to flip numeric values in-place instead of having to first to create unary and remove it afterwards ``` !0 was converted before to 1 in some cases: 1. negate 1 2. !1 - add unary 3. 0 - remove unary now: 1. negate 1 2. 0 ```
A
Armano committed
784e9faad2a5e65e063f3e1f2f448203675909ec
Parent: 1e902cc
Committed by GitHub <noreply@github.com>
on 8/29/2026, 7:36:17 AM