【缺陷修复】全局:"legacy-js-api" 报错

pull/625/head
YunaiV 2024-12-15 17:15:02 +08:00
parent f87b37eaac
commit e891a4bfd2
1 changed files with 2 additions and 1 deletions

View File

@ -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
}
}
},