package-build-stats icon indicating copy to clipboard operation
package-build-stats copied to clipboard

Why don't we mangle?

Open chrisbolin opened this issue 4 years ago • 0 comments

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?

chrisbolin avatar May 22 '20 16:05 chrisbolin