css-loader breaking changes
css-loader 7.1.1 (April 10, 2024) is its newest release with breaking changes. The first: Class named default is renamed to _default when named exports are enabled in css-loader 7.1.1. Every breaking API change we have recorded in css-loader on npm: 22 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 7.1.5, released August 28, 2026.
Its 7.0.0 release requires Node.js 18.12.0 or later. Node.js end of life dates.
- From 6.7.3 to 7.1.1: 5 breaking changes in 2 versions.
- From 5.0.0 to 7.1.1: 17 breaking changes in 4 versions.
css-loader 7.1.1 breaking changes
- Behavior changed
With named export enabled, a CSS class called default is automatically exported as _default instead of default. Code importing the old name must be updated. github.com
css-loader 7.0.0 breaking changes
- Default changed
modules.exportLocalsConvention
When modules.namedExport is true and no value is given, modules.exportLocalsConvention is now as-is, so class names keep their original form. github.com - Default changed
modules.namedExport
The modules.namedExport option is now true by default if esModule is enabled. Use default imports or set modules.namedExport to false to keep the old behavior, and migrate to namespace imports such as import * as style. github.com - Configuration changed
css-loader 7 requires webpack 5.27.0 or later. github.com - Configuration changed
css-loader 7 requires Node.js 18.12.0 or later. github.com
css-loader 6.7.3 breaking changes
- Behavior changed
The loader no longer includes a sourceURL comment in the emitted CSS. Only a bug fix is described, so code relying on it is unlikely to be affected. github.com
css-loader 6.0.0 breaking changes
- Removed
The minimum supported webpack version is now 5. Upgrade webpack to version 5 or later. github.com - Removed
The minimum supported Node.js version is now 12.13.0. Upgrade Node.js before using this release. github.com - Removed
localIdentHashPrefix
Use the localIdentHashSalt option instead. github.com - Removed
localIdentName
Use a custom function in localIdentName if you need this logic. github.com - Removed
modules.compileType
Use the modules.mode option with the icss value instead. github.com - Behavior changed
Data URIs in url() are processed by the loader, so loaders can be registered for them. github.com - Behavior changed
With esModules enabled, a false alias in url() generates an empty data URI (data:0,) instead of the previous output. github.com - Behavior changed
esModules
With esModules enabled (the default), url() output uses new URL() syntax, which changes the generated code. github.com - Behavior changed
localIdentName
Write [ext] without a dot before it in the localIdentName option. github.com - Signature changed
import
Pass an object with a filter property instead of a function for the import option. github.com
And 1 more in this version. Sign up to see every change
css-loader 5.0.0 breaking changes
- Removed
icss
The icss option, deprecated earlier, is gone and code using it must stop passing it. github.com - Behavior changed
Without sourceMap: true the runtime omits source map code, so code depending on it must enable sourceMap. github.com - Behavior changed
The loader now runs on PostCSS 8, so code relying on PostCSS 7 behavior may need updating. github.com - Behavior changed
getLocalIdent
The returned value from getLocalIdent is escaped by default while exportName is always unescaped; custom getLocalIdent code may need adjusting. github.com - Behavior changed
modules.compileType
Files matching the .icss.* pattern now get ICSS modules automatically, so such files are processed differently. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.