Skip to content

Commit f37d3d4

Browse files
authored
chore: silence frontend deprecation warnings for sass (baserow#5079)
1 parent 0238f3c commit f37d3d4

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

web-frontend/config/nuxt.config.base.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,22 @@ export default defineNuxtConfig({
8181
},
8282
},
8383
vite: {
84+
css: {
85+
preprocessorOptions: {
86+
scss: {
87+
// TODO: Migrate all @import rules to @use/@forward (Dart Sass 3.0 will remove @import).
88+
// Also fix global-builtin (unquote → string.unquote in colors.module.scss)
89+
// and if-function (old if() syntax in abstracts/_helpers.scss).
90+
// See https://sass-lang.com/d/import for the migration guide and automated migrator.
91+
silenceDeprecations: [
92+
'import',
93+
'global-builtin',
94+
'if-function',
95+
'color-functions',
96+
],
97+
},
98+
},
99+
},
84100
plugins: [
85101
nodePolyfills({
86102
include: ['util'],

0 commit comments

Comments
 (0)