Files
Tobias KoppersandGitHub 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

20 lines
434 B
TypeScript

import style1 from '../style1.module.css'
import style2 from '../style2.module.css'
import style3 from '../style3.module.css'
import style4 from '../style4.module.css'
import Nav from '../../nav'
export default function Page() {
return (
<div>
<p
className={`${style1.name} ${style2.name} ${style3.name} ${style4.name}`}
id="hellopra"
>
hello world
</p>
<Nav />
</div>
)
}