package-build-stats
package-build-stats copied to clipboard
Why don't we mangle?
https://github.com/pastelsky/package-build-stats/blob/v6.2.2/src/getDependencySizeTree.js#L139-L140
We use Terser.minify
with mangle: false
, which is different than almost all production builds. Effectively, we are penalizing packages who have readable variable names in node_modules
:)
(npm already shows Unpacked Size
, which is useful if you care about how much node_modules
bloats, rather than your actual build.)
I know adding mangling would be a big change to historical data. Would you consider it?