Commit 6ab4f8b
committed
fix: ensure consistent CSS ordering between dev and build with Turbopack
Fixes #86704
The issue was that CSS files were collected from webpack entrypoints
without sorting, leading to non-deterministic ordering between
development (next dev --turbopack) and production (next build --turbopack).
This commit adds .sort() to the CSS files array in flight-manifest-plugin.ts
to ensure consistent alphabetical ordering in both modes.
The fix ensures that CSS prioritization is deterministic and matches
between dev and build, preventing layout breakage in production.1 parent 59beba7 commit 6ab4f8b
File tree
1 file changed
+1
-0
lines changed- packages/next/src/build/webpack/plugins
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| 300 | + | |
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
| |||
0 commit comments