Thu, 02 Feb 2023 06:22:39 +0000
TIL

#TIL swc can be used as a drop-in replacement for terser, with a single line in the package.json: https://swc.rs/docs/configuration/minification#replacing-terser
The performance improvement on most machines is enormous. It reduced my CI time by minutes.
Not so impressive on my MacBook Pro with M1 Pro, though😂 It's so fast that I can hardly feel the difference. Code compression becomes an I/O-bound task rather than CPU-bound on it.