Skip to content

Releases: webpack-contrib/sass-loader

v16.0.4

04 Dec 11:37
Compare
Choose a tag to compare

16.0.4 (2024-12-04)

Bug Fixes

  • include sources map сontent for modern api by default (#1250) (70a10ff)

v16.0.3

01 Nov 00:12
Compare
Choose a tag to compare

16.0.3 (2024-11-01)

Bug Fixes

  • modern-compiler: dispose redundant compilers (#1245) (004ed38)

v16.0.2

20 Sep 12:37
Compare
Choose a tag to compare

16.0.2 (2024-09-20)

Bug Fixes

v16.0.1

19 Aug 13:11
Compare
Choose a tag to compare

16.0.1 (2024-08-19)

Bug Fixes

  • generate correct sourceMaps for modern-compiler api (#1228) (f862f7a)

v16.0.0

26 Jul 17:04
Compare
Choose a tag to compare

16.0.0 (2024-07-26)

⚠ BREAKING CHANGES

  • use modern Sass JS API by default for sass and sass-embedded

Warning

The sass options are different for the legacy (before) and modern APIs. Please look at docs how to migrate to the modern options.
Legacy options - https://sass-lang.com/documentation/js-api/interfaces/legacystringoptions/
Modern options - https://sass-lang.com/documentation/js-api/interfaces/options/

To return to the previous logic use:

module.exports = {
  module: {
    rules: [
      {
        test: /\.s[ac]ss$/i,
        use: [
          "style-loader",
          "css-loader",
          {
            loader: "sass-loader",
            options: {
              api: "legacy",
              // Your options
            },
          },
        ],
      },
    ],
  },
};

Features

  • use modern Sass JS API by default for sass and sass-embedded (10be1ba)

v15.0.0

23 Jul 15:45
Compare
Choose a tag to compare

⚠ BREAKING CHANGES

  • prefer sass-embedded over sass by default (#1211)

Features

  • prefer sass-embedded over sass by default (#1211) (83423ff)

v14.2.1

16 Apr 16:53
Compare
Choose a tag to compare

14.2.1 (2024-04-16)

Bug Fixes

v14.2.0

11 Apr 15:29
Compare
Choose a tag to compare

14.2.0 (2024-04-11)

Features

  • added the modern-compiler value for API to reuse compiler process (#1195) (cef40a8)
  • support webpack built-in resolver for modern and modern-compiler API (#1197) (2265b72)

Notes:

Using the modern-compiler value for the api option together with sass-embedded reduces compilation time by 5-10 times, especially for projects using large files with a lot of @import/@use, for small files the build time reduction will not be significant.

v14.1.1

19 Feb 16:00
Compare
Choose a tag to compare

14.1.1 (2024-02-19)

Bug Fixes

v14.1.0

30 Jan 15:52
Compare
Choose a tag to compare

14.1.0 (2024-01-30)

Features

  • add @rspack/core as an optional peer dependency (#1184) (637ba5b)