Decide whether to enable experimental.chunkModulesOrder by default, stabilize it as opt-in, or remove it.
What the option does
Controls module rendering order within chunks: exec-order (default) or module-id. Order affects gzip ratios because adjacent module ordering changes how repeated patterns compress.
Why it matters — data from apps/10000
Single Vite build, JS + CSS gzipped at level 9, sourcemaps excluded. Only the Vite config changed between runs.
| Vite config |
JS raw |
JS gzip |
Total gzip |
Δ vs default |
default (exec-order) |
5.20 MB |
1.33 MB |
1,394,102 B |
— |
chunkModulesOrder: 'module-id' |
5.17 MB |
818.30 KB |
837,960 B |
−556,142 B (−39.9%) |
Action items
Part of: #9562
Decide whether to enable
experimental.chunkModulesOrderby default, stabilize it as opt-in, or remove it.What the option does
Controls module rendering order within chunks:
exec-order(default) ormodule-id. Order affects gzip ratios because adjacent module ordering changes how repeated patterns compress.Why it matters — data from
apps/10000Single Vite build, JS + CSS gzipped at level 9, sourcemaps excluded. Only the Vite config changed between runs.
exec-order)chunkModulesOrder: 'module-id'Action items
Part of: #9562