rsnext/test/e2e/app-dir/css-order/next.config.js
Tobias Koppers 46a5882223
New CSS chunking algorithm (#63157)
### What?

This fixes more CSS ordering issues with production and webpack dev.

* CSS Modules must not be side effect free as side effect free modules
are per definition order independent which is not true for CSS
* fix order of iterating module references
* disable splitChunks for CSS
* special chunking for CSS with loose and strict mode
* more test cases

Closes PACK-2709
2024-03-18 10:29:13 +01:00

10 lines
147 B
JavaScript

/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
experimental: {
cssChunking: 'strict',
},
}
module.exports = nextConfig