devtools
devtools copied to clipboard
File sizes don't match the ones reported by Vite on build
Describe the bug
Upon building Vite reports gzipped and uncompressed file sizes.
DevTools appears to show gzipped first, then in parenthesis the uncompressed size, but those numbers don't match what Vite reports.
This is reported by Vite:
This is a chunk size found in DevTools:
It doesn't match neither compressed nor uncompressed size.
Reproduction
https://github.com/silvenon/repro/tree/vite-devtools-sizes
gh repo clone silvenon/repro -b vite-devtools-sizes
cd repro
System Info
System:
OS: macOS 26.4
CPU: (8) arm64 Apple M1 Pro
Memory: 99.13 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.22.0 - /Users/silvenon/.n/bin/node
npm: 10.9.4 - /Users/silvenon/.n/bin/npm
pnpm: 10.23.0 - /Users/silvenon/.n/bin/pnpm
bun: 1.1.29 - /Users/silvenon/.bun/bin/bun
Deno: 1.45.2 - /opt/homebrew/bin/deno
Browsers:
Chrome: 146.0.7680.165
Firefox: 147.0.1
Safari: 26.4
Used Package Manager
pnpm
Validations
- [x] Follow our Code of Conduct
- [x] Read the Contributing Guide.
- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [x] The provided reproduction is a minimal reproducible of the bug.