next.js
765b682b - chore: Add `opt-level = s` for not frequently used crates (#85426)

Commit
119 days ago
chore: Add `opt-level = s` for not frequently used crates (#85426) ### What? Combined with `codegen-units = 1` (I'll send another PR for this), these two patches reduce the binary size by 4MB (36MB -> 32MB) Before: https://github.com/swc-project/swc/pull/11188#issuecomment-3453793457 (`swc.linux-x64-gnu.node | 36M (37113184 bytes)`) After: https://github.com/swc-project/swc/pull/11190#issuecomment-3453932183 (`swc.linux-x64-gnu.node | 32M (32959328 bytes)`) ### Why? To reduce the binary size ### How?
Author
Parents
Loading