From d75b169cd8ed3d11774127ece9e19c14f3ebd43a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 6 Jan 2025 20:53:03 -0500 Subject: [PATCH] refactor: silence deprecations in prod --- src/meta/minifier.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/meta/minifier.js b/src/meta/minifier.js index 6aa975b334..6a617cc45d 100644 --- a/src/meta/minifier.js +++ b/src/meta/minifier.js @@ -164,7 +164,10 @@ actions.buildCSS = async function buildCSS(data) { loadPaths: data.paths, }; if (data.minify) { - opts.silenceDeprecations = ['mixed-decls', 'color-functions']; + opts.silenceDeprecations = [ + 'legacy-js-api', 'mixed-decls', 'color-functions', + 'global-builtin', 'import', + ]; } const scssOutput = await sass.compileStringAsync(data.source, opts); css = scssOutput.css.toString();