From b843facac61315d1fb10dc089c4d376328988681 Mon Sep 17 00:00:00 2001 From: Minhyeok Park Date: Tue, 12 Nov 2024 10:33:41 +0900 Subject: [PATCH] chore: use modoern compiler for scss preprocessing --- vite.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 2328e17..bd82888 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,4 +4,11 @@ import react from '@vitejs/plugin-react-swc' // https://vite.dev/config/ export default defineConfig({ plugins: [react()], + css: { + preprocessorOptions: { + scss: { + api: 'modern-compiler' // or "modern" + } + } + } })