From e891a4bfd21a90bc64295c7c91db2f20f24326a4 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 15 Dec 2024 17:15:02 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=BC=BA=E9=99=B7=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E3=80=91=E5=85=A8=E5=B1=80=EF=BC=9A"legacy-js-api"=20=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } } },