next.js
31e1befa - turbopack: always minify chunk items before chunking (#101114)

Commit
13 hours ago
turbopack: always minify chunk items before chunking (#101114) ## Summary Always minify ecmascript chunk items one by one when minification is enabled, and remove `experimental.turbopackMinifyBeforeChunking` together with the whole-chunk minification path. - Removes the config option (types, schema, Rust config), the `minify_before_chunking` chunking-context option and `ChunkMinification`. Chunks use the chunking context's `MinifyType` directly. - Runtime, evaluate and worker chunks are unchanged: they still minify their assembled code. - `ChunkSizeDefaults` is removed: the production chunking defaults are the minified values from #102540, written directly as constants, and are no longer multiplied by 2.5 when minification is off. The `turbopackChunking` docs and JSDoc drop the "or X when sizes are measured unminified" values. - Tests: the `minifyBeforeChunking` test option is gone, and `minification/strict-mode-layouts-per-item` is removed as a duplicate of `strict-mode-layouts-minified`. Eight minified snapshots change: per-item minification uses deterministic mangling order (`a, b, c` instead of frequency order) and ends the module array with `;`. <!-- NEXT_JS_LLM --> <!-- fleet f0961053-7ba9-483f-a687-c98399d2ed19 --> --------- Co-authored-by: vercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com> Co-authored-by: Luke Sandberg <210140+lukesandberg@users.noreply.github.com>
Author
Parents
Loading