Skip to content

Commit 3c26cf9

Browse files
committed
refactor: use quietDeps instead of silenceDeprecations
As suggested by Julusian in PR review, quietDeps is better because: - It hides ALL warnings from dependencies (not just specific types) - It still shows warnings from our own code - This prevents us from accidentally adding deprecated features to our code without being warned
1 parent 5f37a3a commit 3c26cf9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/webui/vite.config.mts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ export default defineConfig(({ command }) => ({
6262
css: {
6363
preprocessorOptions: {
6464
scss: {
65-
// Silence deprecation warnings from Bootstrap and other libraries
66-
// These are caused by Bootstrap 5.x not yet fully supporting Dart Sass 2.x
67-
silenceDeprecations: ['import', 'global-builtin', 'color-functions', 'mixed-decls'],
65+
// Silence deprecation warnings from Bootstrap and other dependencies
66+
// This hides warnings from dependencies but still shows warnings from our own code
67+
// Bootstrap 5.x not yet fully supporting Dart Sass 2.x causes many warnings
68+
quietDeps: true,
6869
},
6970
},
7071
},

0 commit comments

Comments
 (0)