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

webpack asset size vs chunk size #14890

Closed
eps1lon opened this issue Mar 14, 2019 · 2 comments
Closed

webpack asset size vs chunk size #14890

eps1lon opened this issue Mar 14, 2019 · 2 comments

Comments

@eps1lon
Copy link
Member

eps1lon commented Mar 14, 2019

I noticed that upon moving files around that we get very strange differences in size reported: #14888.

The webpack stats are available for the base at https://circleci.com/gh/mui-org/material-ui/78237#artifacts/containers/0 and for the PR at https://circleci.com/gh/mui-org/material-ui/78307#artifacts/containers/0

What was weird is that the asset size for Modal changed by a whole kb while the size of the only chunk that was used stayed the same (parsed and gzipped). The modules didn't change which makes sense if the chunk didn't change.

My question is what the difference between asset and chunk size is? It seems like chunk size is more stable. We use the asset size since that was used by our previous solution (size-limit) and is closer to bundlephobia.com. Is this just some bundler deoptimization?

@jondavidjohn

This comment has been minimized.

@oliviertassinari
Copy link
Member

Closing as we got no relevant feedback in 18 months.

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

No branches or pull requests

3 participants