unstale

npm / less-loader

less-loader

What changed in less-loader 5 to 13, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.

23 breaking1 deprecations10 new APIs and options1 performance4 behavior and defaults2 tooling5 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.2.8 on npm

less-loader 136 changes

Breaking changes 2

  • The option now defaults to true, emitting Less warnings and errors as webpack warnings and errors; set it to false to restore silent logging.

    13.0.0release notes

  • The minimum supported Node.js version is now >= 22.11.0.

    13.0.0release notes

New APIs and options 1

  • The package now ships native ESM as well as CommonJS, with an exports map exposing separate entry points for import and require.

    13.0.0release notes

Behavior and default changes 2

  • Imports from a data: resource are resolved from the loader's context.

    13.1.0release notes

  • Files loaded synchronously by Less, including through data-uri() and custom functions installed via @plugin, are tracked as webpack file dependencies.

    13.0.0release notes

Tooling 1

less-loader 124 changes

Breaking changes 3

  • Reverts the ESM dynamic import; the notes do not specify further details.

    12.3.3release notes

  • The peer dependency was updated for @rspack/core v2, affecting package compatibility.

    12.3.1release notes

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

    12.0.0release notes

Fixes and other changes 1

  • Fixed compatibility with ECMA modules less version.

    12.3.2release notes

less-loader 111 changes

Breaking changes 1

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

    11.0.0release notes

less-loader 102 changes

Breaking changes 1

  • Removed; use pluginManager.webpackLoaderContext instead.

    10.0.0release notes

Performance 1

less-loader 91 changes

Breaking changes 1

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

    9.0.0release notes

less-loader 84 changes

Breaking changes 2

  • The loader first resolves @import as relative; if that fails, it resolves it inside node_modules.

    8.0.0release notes

  • The minimum supported webpack version is 5.

    8.0.0release notes

Deprecations 1

  • Using ~ is deprecated and can be removed from imports, though it remains supported for historical reasons.

    8.0.0release notes

New APIs and options 1

  • The loader supports webpack's resolve.byDependency option for configuring resolution by dependency type, including Less-specific mainFiles.

    8.0.0release notes

less-loader 77 changes

Breaking changes 4

  • The appendData option was removed in favor of additionaldata.

    7.0.0release notes

  • The implementation option was removed.

    7.0.0release notes

  • less moved to peerDependencies, so developers must provide the Less implementation as a peer dependency.

    7.0.0release notes

  • The prependData option was removed in favor of additionaldata.

    7.0.0release notes

New APIs and options 3

  • The additionaldata option was added as the replacement for prependData and appendData.

    7.0.0release notes

  • Loader context was added in Less plugins.

    7.0.0release notes

  • A webpackImporter option was added.

    7.0.0release notes

less-loader 617 changes

Breaking changes 6

  • Imports are resolved first with the Less resolver, then with the webpack resolver.

    6.0.0release notes

  • Less version 2 is no longer supported.

    6.0.0release notes

  • Less version 3 is used by default, so developers no longer need to add less to package.json.

    6.0.0release notes

  • Less-specific options move to the lessOptions option.

    6.0.0release notes

  • The minimum supported Node.js version is 10.13.

    6.0.0release notes

  • The minimum supported webpack version is 4.

    6.0.0release notes

New APIs and options 5

Behavior and default changes 2

Tooling 1

Fixes and other changes 3

  • Resolution is fixed for package-file imports using either the package path or a relative package path.

    6.0.0release notes

  • The paths option now works with the webpack resolver.

    6.0.0release notes

  • The loader no longer crashes on remote imports.

    6.0.0release notes

less-loader 54 changes

Breaking changes 3

  • The deprecated compress option was removed.

    5.0.0release notes

  • Support for Node.js versions below 6.9 was dropped.

    5.0.0release notes

  • Support for webpack versions below 4 was dropped.

    5.0.0release notes

Fixes and other changes 1

  • Webpack watching now recovers after broken Less is fixed.

    5.0.0release notes