Update dependency css-loader to v7
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
css-loader | dependencies | major | 6.10.0 -> 7.1.2 |
Release Notes
webpack-contrib/css-loader (css-loader)
v7.1.2
v7.1.1
v7.1.0
Features
v7.0.0
⚠ BREAKING CHANGES
- The
modules.namedExport
option istrue
by default if you enable theesModule
option
Migration guide:
Before:
import style from "./style.css";
console.log(style.myClass);
After:
import * as style from "./style.css";
console.log(style.myClass);
To restore 6.x behavior, please use:
module.exports = {
module: {
rules: [
{
test: /\.css$/i,
loader: "css-loader",
options: {
modules: {
namedExport: false,
exportLocalsConvention: 'as-is',
//
// or, if you prefer camelcase style
//
// exportLocalsConvention: 'camel-case-only'
},
},
},
],
},
};
- The
modules.exportLocalsConvention
has the valueas-is
when themodules.namedExport
option istrue
and you don't specify a value - Minimum supported webpack version is
5.27.0
- Minimum supported Node.js version is
18.12.0
Features
- The
modules.namedExports
option works fine with anymodules.exportLocalsConvention
values (f96a110) - Added dashed variants for the
modules.exportLocalsConvention
options (40e1668)
v6.11.0
Features
Bug Fixes
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by renovate