Skip to content
Discussion options

You must be logged in to vote

Those tools do not exactly match the build directory or Network panel because they measure different things:

  • a visualizer attributes modules to Rollup chunks;
  • the build directory shows raw minified bytes on disk;
  • browser transfer size is the response after the deployed server/CDN applies Brotli or gzip, headers, caching and possibly transformations.

I would use a three-part check rather than choose one number as canonical.

1. Module composition

Keep rollup-plugin-visualizer (or an equivalent) for answering why is this chunk large?. Enable its gzip/Brotli estimates, but treat them as estimates rather than deployed transfer sizes.

2. Exact build artifacts

Measure build/client after react-…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vincerubinetti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants