Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why don't we mangle? #21

Open
chrisbolin opened this issue May 22, 2020 · 0 comments
Open

Why don't we mangle? #21

chrisbolin opened this issue May 22, 2020 · 0 comments

Comments

@chrisbolin
Copy link

chrisbolin commented May 22, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant