unstale

npm / postcss-loader

postcss-loader

What changed in postcss-loader 3 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.

21 breaking1 deprecations2 new APIs and options1 performance3 behavior and defaults6 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.4 on npm

postcss-loader 82 changes

Breaking changes 1

  • The minimum supported Node.js version is now 18.12.0.

    8.0.0release notes

Fixes and other changes 1

  • Updates the peer dependency to support @rspack/core v2.

    8.2.1release notes

postcss-loader 71 changes

Breaking changes 1

  • The minimum supported Node.js version is 14.15.0.

    7.0.0release notes

postcss-loader 62 changes

Breaking changes 2

  • The minimum supported Node.js version is now 12.13.0.

    6.0.0release notes

  • The loader checks PostCSS as a project dependency.

    6.0.0release notes

postcss-loader 51 changes

Breaking changes 1

  • The minimum supported webpack version is now 5.

    5.0.0release notes

postcss-loader 424 changes

Breaking changes 14

  • The config option no longer supports Object values.

    4.0.0release notes

  • The Function notation argument now contains file, mode, and webpackLoaderContext.

    4.0.0release notes

  • The config.ctx option was removed.

    4.0.0release notes

  • The config.path option was removed.

    4.0.0release notes

  • The exec option was renamed to execute.

    4.0.0release notes

  • The ident option is no longer needed for the loader.

    4.0.0release notes

  • The loader now outputs only CSS; use css-loader, file-loader, or raw-loader to inject code into the bundle.

    4.0.0release notes

  • The minimum supported Node.js version is now 10.13.

    4.0.0release notes

  • postcss is now a peer dependency and must be installed by users.

    4.0.0release notes

  • PostCSS plugins, syntax, parser, and stringifier options move under postcssOptions.

    4.0.0release notes

  • The default sourceMap value now depends on the compiler.devtool option.

    4.0.0release notes

  • The inline value is no longer supported; use map with inline: true and annotation: false instead.

    4.0.0release notes

  • The minimum supported webpack version is now 4.

    4.0.0release notes

  • The config's loader context was renamed from webpack to webpackLoaderContext.

    4.0.0release notes

Deprecations 1

  • Object syntax for the plugin option is soft deprecated; migrate to Array syntax.

    4.0.0release notes

New APIs and options 1

Performance 1

  • The loader can reuse an AST from other loaders.

    4.0.0release notes

Behavior and default changes 3

  • Config and loader options can be used together; loader options take precedence and plugins are merged.

    4.0.0release notes

  • postcssOptions can now be a Function.

    4.0.0release notes

  • Source maps now contain absolute paths in their sources.

    4.0.0release notes

Fixes and other changes 4

  • The default export for plugins was fixed.

    4.0.0release notes

  • Mutations of loader options and config are avoided.

    4.0.0release notes

  • The map option from loader options and config is now respected.

    4.0.0release notes

  • Compatibility with webpack 5 was fixed.

    4.0.0release notes

postcss-loader 34 changes

Breaking changes 2

New APIs and options 1

Fixes and other changes 1