Skip to content

Commit d2db1ae

Browse files
committed
frontend: silence deprication warnings.
fix #204
1 parent df88054 commit d2db1ae

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

frontend/vite.config.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import wasm from "vite-plugin-wasm"
44
import topLevelAwait from 'vite-plugin-top-level-await';
55
import { buildSync } from "esbuild";
66
import { join } from "node:path";
7+
import versionPlugin from './vite-plugin-version';
78

89

910
const swBuildPlugin: Plugin = {
@@ -26,9 +27,17 @@ export default defineConfig({
2627
css: {
2728
preprocessorOptions: {
2829
scss: {
29-
additionalData: process.env.IS_SEB === "true" ? `@import "./_seb.scss";` : `@import "./_warp.scss";`
30+
additionalData: process.env.IS_SEB === "true" ? `@import "./_seb.scss";` : `@import "./_warp.scss";`,
31+
quietDeps: true,
32+
silenceDeprecations: [
33+
"mixed-decls",
34+
"import",
35+
"color-functions",
36+
"global-builtin",
37+
],
38+
verbose: false,
3039
}
31-
}
40+
},
3241
},
3342
resolve: {
3443
alias: {
@@ -49,6 +58,7 @@ export default defineConfig({
4958
wasm(),
5059
topLevelAwait(),
5160
swBuildPlugin,
61+
versionPlugin,
5262
],
5363
worker: {
5464
format: "es",

0 commit comments

Comments
 (0)