Skip to content

Commit

Permalink
refactor: silence deprecations in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Jan 7, 2025
1 parent 27e945f commit d75b169
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/meta/minifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d75b169

Please sign in to comment.