Input:
"WeakMap" in (typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : global);
Output:
`WeakMap`in(typeof window<`u`?window:typeof globalThis<`u`?globalThis:global);
Playground
Expected behavior:
The "in" operator is completely removed
This code can potentially have side effects when using a proxy, but this is a rare case
compress.treeshake.propertyReadSideEffects and unknownGlobalSideEffects do not affect this code
Input:
Output:
Playground
Expected behavior:
The "in" operator is completely removed
This code can potentially have side effects when using a proxy, but this is a rare case
compress.treeshake.propertyReadSideEffectsandunknownGlobalSideEffectsdo not affect this code