oxc
oxc copied to clipboard
minifier: turn off pure annotations
https://github.com/rolldown/rolldown/issues/3753
supplement, treeshake.annotation in rollup includes both @__PURE__, @__NO_SIDE_EFFECTS__ https://rollupjs.org/configuration-options/#treeshake-annotations
Going through Rolldown's SideEffectDetector and Rollup's treeshake configuration, oxc's side effect detector should also include
- https://rollupjs.org/configuration-options/#treeshake-manualpurefunctions
- https://rollupjs.org/configuration-options/#treeshake-unknownglobalsideeffects
So we can eventually merge the two implementations and provide a unified functionality.