swc-project / swc

Rust-based platform for the Web

Home Page:https://swc.rs

Repository from Github https://github.comswc-project/swcRepository from Github https://github.comswc-project/swc

`es/minifier`: useless binary operators not always dropped

Le0Developer opened this issue · comments

Describe the feature

this.test = function(a) {
    return (0 | !(a < 0)) ^ (a < 0) << 8;
};

The 0 | of 0 | !(a < 0) is not required. Terser gets this.

Babel plugin or link to the feature description

No response

Additional context

Playground