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)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [sass-loader](https://github.com/webpack-contrib/sass-loader) | devDependencies | major | [`14.2.1` -> `16.0.1`](https://renovatebot.com/diffs/npm/sass-loader/14.2.1/16.0.1) |
---
### Release Notes
<details>
<summary>webpack-contrib/sass-loader (sass-loader)</summary>
### [`v16.0.1`](https://github.com/webpack-contrib/sass-loader/blob/HEAD/CHANGELOG.md#1601-2024-08-19)
[Compare Source](https://github.com/webpack-contrib/sass-loader/compare/v16.0.0...v16.0.1)
##### Bug Fixes
- generate correct sourceMaps for `modern-compiler` api ([#​1228](https://github.com/webpack-contrib/sass-loader/issues/1228)) ([f862f7a](https://github.com/webpack-contrib/sass-loader/commit/f862f7a8382fab11c9c2a897ab1e26d35167cd10))
### [`v16.0.0`](https://github.com/webpack-contrib/sass-loader/blob/HEAD/CHANGELOG.md#1600-2024-07-26)
[Compare Source](https://github.com/webpack-contrib/sass-loader/compare/v15.0.0...v16.0.0)
##### ⚠ 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](https://sass-lang.com/documentation/js-api) 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:
```js
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](https://github.com/webpack-contrib/sass-loader/commit/10be1ba161557638fd3b80f4a5467159179ef9b1))
### [`v15.0.0`](https://github.com/webpack-contrib/sass-loader/blob/HEAD/CHANGELOG.md#1500-2024-07-23)
[Compare Source](https://github.com/webpack-contrib/sass-loader/compare/v14.2.1...v15.0.0)
##### ⚠ BREAKING CHANGES
- prefer `sass-embedded` over `sass` by default ([#​1211](https://github.com/webpack-contrib/sass-loader/issues/1211))
##### Features
- prefer `sass-embedded` over `sass` by default ([#​1211](https://github.com/webpack-contrib/sass-loader/issues/1211)) ([83423ff](https://github.com/webpack-contrib/sass-loader/commit/83423ff933b1086e6203ca640c0994e14b95de2b))
##### [14.2.1](https://github.com/webpack-contrib/sass-loader/compare/v14.2.0...v14.2.1) (2024-04-16)
##### Bug Fixes
- avoid multiple sass compiler creation ([#​1199](https://github.com/webpack-contrib/sass-loader/issues/1199)) ([77051d8](https://github.com/webpack-contrib/sass-loader/commit/77051d81b26ffe42e8a7c6769337a1c0f55f73ef))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
14.2.1->16.0.1Release Notes
webpack-contrib/sass-loader (sass-loader)
v16.0.1Compare Source
Bug Fixes
modern-compilerapi (#1228) (f862f7a)v16.0.0Compare Source
⚠ BREAKING CHANGES
sassandsass-embeddedTo return to the previous logic use:
Features
sassandsass-embedded(10be1ba)v15.0.0Compare Source
⚠ BREAKING CHANGES
sass-embeddedoversassby default (#1211)Features
sass-embeddedoversassby default (#1211) (83423ff)14.2.1 (2024-04-16)
Bug Fixes
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.