From 9e78bf043596a1d9533fd858d9f2b80a3be86de5 Mon Sep 17 00:00:00 2001 From: Ray-D-Song Date: Wed, 25 Sep 2024 09:25:35 +0800 Subject: [PATCH] fix: sass deprecated legacy JS API --- vite.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 390340c..1386557 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -30,5 +30,12 @@ export default defineConfig(({ mode }) => { optimizeDeps: { include: ['echarts', 'md-editor-v3', 'quill'], }, + css: { + preprocessorOptions: { + scss: { + api: 'modern', + }, + }, + }, } })