[heft] `@rushstack/heft-sass-plugin`: `ignoreDeprecationsInDependencies` is a silent no-op (never wired to Sass `quietDeps`)
@iclanton is already working on this.
Since Jun 15, 2026.
Assessment
This issue has not been assessed yet.
Description
@rushstack/heft-sass-plugin: ignoreDeprecationsInDependencies is a silent no-op (never wired to Sass quietDeps)
Summary
@rushstack/heft-sass-plugin documents and schema-validates a Sass config option ignoreDeprecationsInDependencies, but the option has no effect. It is declared in the JSON schema, in the ISassProcessorOptions interface, and in the README — but it is never read from the config file and never forwarded to the Sass compiler. Setting it to true passes validation and does nothing.
The option is clearly intended to map to the Sass compiler's quietDeps flag, which suppresses deprecation warnings originating from dependency stylesheets (files reached via importers / @use / @import) while keeping warnings in the project's own authored SCSS visible. Today the only working lever is the blunt, global silenceDeprecations, which also hides deprecations in first-party code that developers actually need to fix.
Versions
@rushstack/heft-sass-plugin: 1.4.1@rushstack/heft: 1.2.17sass-embedded: 1.85.1
Root cause
The value is dropped at two points along the path sass.json → SassPlugin.ts → SassProcessor.ts → sass compiler options:
-
src/SassPlugin.ts— the config interfaceISassConfigurationJsondoes not declareignoreDeprecationsInDependencies. It is not destructured from the loadedsassConfigurationJson, and it is never copied into theISassProcessorOptionsobject passed tonew SassProcessor(...). (OnlysilenceDeprecationsis plumbed through.) -
src/SassProcessor.ts— the constructor destructures only{ silenceDeprecations, excludeFiles }, and thethis._scssOptionsobject literal setssilenceDeprecationsbut never setsquietDeps. The stringquietDepsdoes not appear anywhere in the package.
The schema (src/schemas/heft-sass-plugin.schema.json), the ISassProcessorOptions interface, and the README all declare/document the option — which is exactly why it appears supported while silently doing nothing.
Steps to reproduce
- Use
@rushstack/heft-sass-pluginon a project whose SCSS@uses/@imports a dependency (e.g. fromnode_modules) that emits a Sass deprecation warning (e.g.import,global-builtin, orcolor-functions). - In
config/sass.json, set:{ "ignoreDeprecationsInDependencies": true } - Build.
Expected: deprecation warnings coming from the dependency are suppressed, while deprecations in the project's own SCSS still appear.
Actual: the option is ignored entirely; dependency deprecation warnings are still printed. The only way to silence them is global silenceDeprecations, which also hides first-party deprecations.
Suggested fix
Forward the option to the Sass compiler's quietDeps flag:
- In
src/SassPlugin.ts: addignoreDeprecationsInDependencies?: booleantoISassConfigurationJson, include it in the destructure of the loaded config, and pass it into theISassProcessorOptionsgiven tonew SassProcessor(...). - In
src/SassProcessor.ts: destructureignoreDeprecationsInDependenciesfromoptionsand addquietDeps: ignoreDeprecationsInDependenciesto thethis._scssOptionsobject literal (alongside the existingsilenceDeprecations). The two are independent and should compose.
quietDeps is a standard sass-embedded option (boolean | undefined), so passing the optional value through is type-safe and requires no schema change.
Related
Originally surfaced via SharePoint/sp-dev-docs#10834
- Dominant language
- TypeScript
- Stars
- 6.5k
- Forks
- 708
- Avg merge
- 5d 7h
- Merged PRs (30d)
- 44
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/rushstack
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
All issues in microsoft/rushstack
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ontola/atomic-server#1625 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
melgarafael/DeskcommCRM#1451 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·