Skip to content

Commit

Permalink
Update silenced warnings for Sass compiler
Browse files Browse the repository at this point in the history
Those were missed in #5442
  • Loading branch information
romaricpascal committed Nov 11, 2024
1 parent 9189857 commit 409527b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion shared/helpers/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ const sassPaths = [
async function compileSassFile(path, options = {}) {
return compileAsync(path, {
loadPaths: sassPaths,
silenceDeprecations: ['slash-div', 'mixed-decls'],
silenceDeprecations: [
'slash-div',
'mixed-decls',
'import',
'global-builtin'
],
quietDeps: true,
...options
})
Expand Down
7 changes: 6 additions & 1 deletion shared/tasks/styles.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ export async function compileStylesheet([

// Turn off dependency warnings
quietDeps: true,
silenceDeprecations: ['slash-div', 'mixed-decls'],
silenceDeprecations: [
'slash-div',
'mixed-decls',
'import',
'global-builtin'
],

// Enable source maps
sourceMap: true,
Expand Down

0 comments on commit 409527b

Please sign in to comment.