v7.0.0
7.0.0 (2024-04-04)
⚠ BREAKING CHANGES
- The
modules.namedExportoption istrueby default if you enable theesModuleoption
Migration guide:
Before:
import style from "./style.css";
console.log(style.myClass);After:
import * as style from "./style.css";
console.log(style.myClass);Typescript migration:
Before:
declare module '*.module.css' {
const classes: { [key: string]: string };
export default classes;
}After:
declare module '*.module.css' {
const classes: { [key: string]: string };
export = classes;
}- The
modules.exportLocalsConventionhas the valueas-iswhen themodules.namedExportoption istrueand you don't specify a value - Minimum supported webpack version is
5.27.0 - Minimum supported Node.js version is
18.12.0