mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
b421cadefd
### What? Migrates the package CSS side-effects coverage from #70087 into the current `css-order` end-to-end suite. The matrix covers `sideEffects` values of `true`, `false`, broad CSS arrays, and global-CSS-only arrays across App Router, Pages Router, client components, and server components with client children. ### Why? The older coverage never reached `canary`, and most of its Turbopack cases were skipped as inconsistent. Keeping the scenarios in the current suite verifies that package CSS ordering remains deterministic in both Turbopack's default chunking mode and the graph chunker. ### How? The test uses explicit synthetic package fixtures and reuses the suite's existing Turbopack mode matrix, including the graph string and object configurations. The packages are transpiled so Pages Router exercises bundler CSS behavior rather than externalizing CSS imports to Node. Invalid entrypoints, selectors, routes, and CSS module references from the old fixtures were corrected during migration. This does not include the webpack loader implementation change proposed by #70087. ### Verification - `HEADLESS=true pnpm test-dev-turbo test/e2e/app-dir/css-order/css-order.test.ts` (189 passed, 114 existing todos) - `HEADLESS=true pnpm test-start-turbo test/e2e/app-dir/css-order/css-order.test.ts` (291 passed, 12 existing todos) - `HEADLESS=true pnpm test-start-webpack test/e2e/app-dir/css-order/css-order.test.ts` (192 passed, 8 existing todos) <!-- NEXT_JS_LLM --> <!-- fleet 10f9743e-de76-437c-8fdc-76b7be42a9b9 --> --------- Co-authored-by: vercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com> Co-authored-by: Tobias Koppers <1365881+sokra@users.noreply.github.com>