Update dependency sass-loader to v16
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| sass-loader | dependencies | major | ^14.0.0 -> ^16.0.0 |
Release Notes
webpack-contrib/sass-loader (sass-loader)
v16.0.1
Bug Fixes
v16.0.0
⚠ BREAKING CHANGES
- use modern Sass JS API by default for
sassandsass-embedded
[!WARNING]
The sass options are different for the
legacy(before) andmodernAPIs. 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
sassandsass-embedded(10be1ba)
v15.0.0
⚠ BREAKING CHANGES
- prefer
sass-embeddedoversassby default (#1211)
Features
14.2.1 (2024-04-16)
Bug Fixes
v14.2.1
v14.2.0
Features
- added the
modern-compilervalue for API to reuse compiler process (#1195) (cef40a8) - support webpack built-in resolver for
modernandmodern-compilerAPI (#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.
14.1.1 (2024-02-19)
Bug Fixes
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.