resources: Add option to silence dependency deprecation warnings

Closes #13530
This commit is contained in:
Joe Mooring
2025-03-27 15:52:46 -07:00
committed by Bjørn Erik Pedersen
parent 6f14dbe24c
commit c15ebce2fd
5 changed files with 75 additions and 7 deletions

View File

@@ -161,6 +161,11 @@ type Options struct {
// The IDs can be found in the Dart Sass log output, e.g. "import" in
// WARN Dart Sass: DEPRECATED [import].
SilenceDeprecations []string
// Whether to silence deprecation warnings from dependencies, where a
// dependency is considered any file transitively imported through a load
// path. This does not apply to @warn or @debug rules.
SilenceDependencyDeprecations bool
}
func decodeOptions(m map[string]any) (opts Options, err error) {