fix(deps): update dependency css-loader to v7
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
css-loader | dependencies | major | 6.9.1 -> 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
v6.10.0
Features
- add
@rspack/core
as an optional peer dependency (#1568) (3924679) - pass the
resourceQuery
andresourceFragment
to theauto
andmode
callback (#1569) (d641c4d) - support named exports with any characters (6f43929)
6.9.1 (2024-01-18)
Bug Fixes
- css nesting support
-
@scope
at-rule support
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by renovate