Open
Description
Bug report
Chunks aren't split properly for CSS when using mini-css-extract-plugin@>=2.4.0
(or older together with experimentalUseImportModule: true
).
This is mainly the same as #850 but that was closed.
Actual Behavior
Code gets folded into the main bundle.
Expected Behavior
Code gets split into the right chunks as specified in the config.
How Do We Reproduce?
Check out this repo with examples for when it's working, when it's not working, and a potential fix.
https://github.com/koggdal/sample-mini-css-extract-plugin-issue-850
Read the README in that repo for more details.
Please paste the results of npx webpack-cli info
here, and mention other relevant information
System:
OS: macOS 12.3.1
CPU: (10) arm64 Apple M1 Max
Memory: 27.37 GB / 64.00 GB
Binaries:
Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node
Yarn: 1.22.18 - ~/.yvm/.yarn/shim/yarn
npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm
Browsers:
Chrome: 100.0.4896.127
Firefox: 99.0.1
Safari: 15.4
Packages:
css-loader: ^6.7.1 => 6.7.1
webpack: ^5.72.0 => 5.72.0
webpack-cli: ^4.9.2 => 4.9.2
Metadata
Metadata
Assignees
Labels
No labels