unstale

npm / sass-loader

sass-loader

What changed in sass-loader 8 to 17, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-20.

22 breaking1 deprecations3 new APIs and options1 performance6 behavior and defaults3 tooling13 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

sass-loader 178 changes

Breaking changes 3

Behavior and default changes 2

  • Resolves data: resources from the loader's context and reads text/x-sass as the indented syntax.

    17.1.0release notes

  • The api option now defaults to auto, which enables the modern compiler when supported and reuses a long-running compiler across files; otherwise it falls back to the modern API.

    17.0.0release notes

Tooling 2

  • The exports field exposes both ESM and CommonJS builds, allowing ESM consumers to import the loader directly while CommonJS consumers continue to use require.

    17.0.0release notes

  • Types have been added.

    17.0.0release notes

Fixes and other changes 1

  • Removes the BOM from compiled CSS and shifts source maps accordingly, preventing it from breaking a CSS rule when tools move @import at-rules above it.

    17.0.1release notes

sass-loader 164 changes

Breaking changes 1

  • Uses the modern Sass JS API by default for sass and sass-embedded; legacy Sass options may need migration.

    16.0.0release notes

Performance 1

Tooling 1

  • Updates the peer dependency for @rspack/core v2, allowing sass-loader to declare compatibility with it.

    16.0.7release notes

Fixes and other changes 1

  • Normalizes separators in getPossibleRequests on Windows.

    16.0.8release notes

sass-loader 151 changes

Breaking changes 1

  • sass-loader prefers sass-embedded over sass by default.

    15.0.0release notes

sass-loader 142 changes

Breaking changes 2

sass-loader 133 changes

Breaking changes 2

  • The original Sass error is no longer stored in the webpack error.

    13.0.0release notes

  • Sass @warn at-rules are emitted as webpack warnings by default; use this option to revert the behavior.

    13.0.0release notes

Fixes and other changes 1

  • Importers for the modern API no longer cause a crash.

    13.0.0release notes

sass-loader 123 changes

Breaking changes 1

  • The minimum supported Node.js version is 12.13.0.

    12.0.0release notes

Fixes and other changes 2

  • Fixes a crash in custom importers when using worker threads.

    12.0.0release notes

  • Fixes resolving _index.import.scss and index.import.scss in packages.

    12.0.0release notes

sass-loader 113 changes

Breaking changes 1

  • The minimum supported webpack version is now 5.

    11.0.0release notes

Deprecations 1

  • Using ~ in imports is deprecated and can be removed; the loader resolves imports relative to the file first, then tries node_modules.

    11.0.0release notes

New APIs and options 1

  • The loader now supports resolve.byDependency, allowing Sass-specific resolution settings such as custom mainFiles.

    11.0.0release notes

sass-loader 101 changes

Fixes and other changes 1

  • Fixes handling of absolute Windows paths in source maps.

    10.0.0release notes

sass-loader 913 changes

Breaking changes 4

  • Use additionalData in place of the removed prependData option.

    9.0.0release notes

  • The prependData option was removed in favor of additionalData.

    9.0.0release notes

  • The loader prefers sass (Dart Sass) by default; migrating to it is strongly recommended.

    9.0.0release notes

  • Ignored when the loader's sourceMap option is true.

    9.0.0release notes

New APIs and options 2

  • Resolution supports the sass property in the exports field for conditional exports.

    9.0.0release notes

  • Custom importers can access the loader context through this.webpackLoaderContext.

    9.0.0release notes

Behavior and default changes 2

  • Resolution supports process.cwd() logic by default.

    9.0.0release notes

  • Resolution supports the SASS-PATH environment variable by default.

    9.0.0release notes

Fixes and other changes 5

  • Resolution logic for absolute paths and server relative URLs was improved.

    9.0.0release notes

  • Avoids producing different content on different operating systems.

    9.0.0release notes

  • Resolution logic for the file:// scheme was improved.

    9.0.0release notes

  • Resolution logic was improved when the includePaths option is used.

    9.0.0release notes

  • Source maps generation was improved.

    9.0.0release notes

sass-loader 811 changes

Breaking changes 7

  • The functions option can no longer be used as Function; use sassOption as Function instead.

    8.0.0release notes

  • Loader options are now validated.

    8.0.0release notes

  • The minimum required node.js version is 8.9.0.

    8.0.0release notes

  • The data option was renamed to prependData.

    8.0.0release notes

  • Sass options includePaths, importer, and functions must now be configured under sassOptions.

    8.0.0release notes

  • The default sourceMap value now depends on devtool; eval and false values do not enable source map generation.

    8.0.0release notes

  • The minimum required webpack version is 4.36.0.

    8.0.0release notes

Behavior and default changes 2

  • Error handling from node-sass and sass was reworked.

    8.0.0release notes

  • The loader automatically uses the fibers package when possible.

    8.0.0release notes

Fixes and other changes 2

  • Resolution for @import was improved, including support for _index and index files in a directory.

    8.0.0release notes

  • Compatibility with pnp was fixed.

    8.0.0release notes