---
title: "css-loader 7.1.1 Breaking Changes on npm | Since.dev"
description: "What each css-loader release removed, renamed or changed: 22 breaking changes in 5 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/css-loader
last_updated: 2026-12-04
---

# 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

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](https://since.dev/calendar/nodejs.md).

- From [6.7.3](#v-6-7-3) to [7.1.1](#v-7-1-1): 5 breaking changes in 2 versions.
- From [5.0.0](#v-5-0-0) to [7.1.1](#v-7-1-1): 17 breaking changes in 4 versions.

## css-loader 7.1.1 breaking changes

css-loader 7.1.1, released April 10, 2024: 1 breaking change.

- **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](https://github.com/webpack/css-loader/releases/tag/v7.1.1)

## css-loader 7.0.0 breaking changes

css-loader 7.0.0, released April 4, 2024: 4 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](https://github.com/webpack/css-loader/releases/tag/v7.0.0)
- **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](https://github.com/webpack/css-loader/releases/tag/v7.0.0)
- **Configuration changed**  

css-loader 7 requires webpack 5.27.0 or later. [github.com](https://github.com/webpack/css-loader/releases/tag/v7.0.0)
- **Configuration changed**  

css-loader 7 requires Node.js 18.12.0 or later. [github.com](https://github.com/webpack/css-loader/releases/tag/v7.0.0)

## css-loader 6.7.3 breaking changes

css-loader 6.7.3, released December 14, 2022: 1 breaking change.

- **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](https://github.com/webpack/css-loader/releases/tag/v6.7.3)

## css-loader 6.0.0 breaking changes

css-loader 6.0.0, released July 15, 2021: 11 breaking changes.

- **Removed**  

The minimum supported webpack version is now 5. Upgrade webpack to version 5 or later. [github.com](https://github.com/webpack/css-loader/releases/tag/v6.0.0)
- **Removed**  

The minimum supported Node.js version is now 12.13.0. Upgrade Node.js before using this release. [github.com](https://github.com/webpack/css-loader/releases/tag/v6.0.0)
- **Removed** `localIdentHashPrefix`  

Use the localIdentHashSalt option instead. [github.com](https://github.com/webpack/css-loader/releases/tag/v6.0.0)
- **Removed** `localIdentName`  

Use a custom function in localIdentName if you need this logic. [github.com](https://github.com/webpack/css-loader/releases/tag/v6.0.0)
- **Removed** `modules.compileType`  

Use the modules.mode option with the icss value instead. [github.com](https://github.com/webpack/css-loader/releases/tag/v6.0.0)
- **Behavior changed**  

Data URIs in url() are processed by the loader, so loaders can be registered for them. [github.com](https://github.com/webpack/css-loader/releases/tag/v6.0.0)
- **Behavior changed**  

With esModules enabled, a false alias in url() generates an empty data URI (data:0,) instead of the previous output. [github.com](https://github.com/webpack/css-loader/releases/tag/v6.0.0)
- **Behavior changed** `esModules`  

With esModules enabled (the default), url() output uses new URL() syntax, which changes the generated code. [github.com](https://github.com/webpack/css-loader/releases/tag/v6.0.0)
- **Behavior changed** `localIdentName`  

Write \[ext\] without a dot before it in the localIdentName option. [github.com](https://github.com/webpack/css-loader/releases/tag/v6.0.0)
- **Signature changed** `import`  

Pass an object with a filter property instead of a function for the import option. [github.com](https://github.com/webpack/css-loader/releases/tag/v6.0.0)

And 1 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## css-loader 5.0.0 breaking changes

css-loader 5.0.0, released October 13, 2020: 5 breaking changes.

- **Removed** `icss`  

The icss option, deprecated earlier, is gone and code using it must stop passing it. [github.com](https://github.com/webpack/css-loader/releases/tag/v5.0.0)
- **Behavior changed**  

Without sourceMap: true the runtime omits source map code, so code depending on it must enable sourceMap. [github.com](https://github.com/webpack/css-loader/releases/tag/v5.0.0)
- **Behavior changed**  

The loader now runs on PostCSS 8, so code relying on PostCSS 7 behavior may need updating. [github.com](https://github.com/webpack/css-loader/releases/tag/v5.0.0)
- **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](https://github.com/webpack/css-loader/releases/tag/v5.0.0)
- **Behavior changed** `modules.compileType`  

Files matching the .icss.\* pattern now get ICSS modules automatically, so such files are processed differently. [github.com](https://github.com/webpack/css-loader/releases/tag/v5.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
