diff --git a/vite.config.ts b/vite.config.ts index 57611ce6..7e15f84e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -44,7 +44,8 @@ export default ({command, mode}: ConfigEnv): UserConfig => { preprocessorOptions: { scss: { additionalData: '@use "@/styles/variables.scss" as *;', - javascriptEnabled: true + javascriptEnabled: true, + silenceDeprecations: ["legacy-js-api"], // 参考自 https://stackoverflow.com/questions/78997907/the-legacy-js-api-is-deprecated-and-will-be-removed-in-dart-sass-2-0-0 } } },