refactor: silence deprecations in prod

This commit is contained in:
Barış Soner Uşaklı
2025-01-06 20:53:03 -05:00
parent 27e945fde8
commit d75b169cd8

View File

@@ -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();