style-loader breaking changes
style-loader 4.0.0 (April 8, 2024) is its newest release with breaking changes, 4 of them. The first: Raises minimum supported webpack version to 5.27.0 in style-loader 4.0.0. Every breaking API change we have recorded in style-loader on npm: 11 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.0.0, released April 8, 2024. Source repository
Its 4.0.0 release requires Node.js 18.12.0 or later. Node.js end of life dates.
- From 3.0.0 to 4.0.0: 4 breaking changes in 1 version.
- From 2.0.0 to 4.0.0: 8 breaking changes in 2 versions.
style-loader 4.0.0 breaking changes
- Behavior changed
Projects must use webpack 5.27.0 or later with this release. github.com - Behavior changed
The package now requires Node.js 18.12.0 or later. github.com - Configuration changed
insert
The insert option can no longer be a function; pass a selector or the path to a module that exports the insert function instead. github.com - Configuration changed
styleTagTransform
styleTagTransform can no longer be an inline function; move it into a separate module and pass its path. github.com
style-loader 3.0.0 breaking changes
- Removed
modules.namedExport
The modules.namedExport option was removed; remove it from your configuration, since css-loader's option is now respected. github.com - Behavior changed
injectType
The default styleTag injectType no longer falls back to a singleton style tag for IE8-IE9. To keep the old behavior, set injectType to autoStyleTag (or lazyAutoStyleTag for lazyStyleTag). github.com - Configuration changed
The package now requires webpack 5.0.0 or later. github.com - Configuration changed
The package now requires Node.js 12.13.0 or later. github.com
style-loader 2.0.0 breaking changes
- Removed
Loaders that return a String instead of an Array are no longer supported; return an Array instead. github.com - Removed
The minimum supported Node.js version is now 10.13.0. github.com - Configuration changed
esModule
The esModule option is true by default, so CommonJS-style require of CSS modules must change to ES module import. 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.