Upgrading css-loader 4 to 5
Breaking4.3.0 → 5.2.7Breaking6New7Fixed15
BreakingUpgrade verdict
6 breaking changes.
In plain terms
- returned value from the getLocalIdent escapes by default, the exportName value is always unescaped.
- the icss option was removed (it was deprecated previously).
- migrate on PostCSS 8.
- runtime doesn't contain source maps code without sourceMap: true.
Must act Top 3 of 6 that need code or config changes
Drops camelcase, cssesc.
What you must change
Breaking6
returned value from the getLocalIdent escapes by default, the exportName value is always unescaped.
getLocalIdentexportNamethe icss option was removed (it was deprecated previously).
icssmigrate on PostCSS 8.
runtime doesn't contain source maps code without sourceMap: true.
Auto enable icss modules for all files for which /\.icss\.\w+$/i is true (the modules.compileType option is icss).
/\.icss\.\w+$/itruemodules.compileTypeicss[emoji] placeholder was deprecated.
[emoji]