From 28ef44effc011169855b5063218720c0e7c9c3a3 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Tue, 16 Sep 2025 01:35:05 -0700 Subject: [PATCH] fix scss imports with modern compiler api --- vite.config.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 236d3d29..fc9574c3 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,7 +6,16 @@ import { fileURLToPath, URL } from 'node:url' export default defineConfig({ resolve: { alias: { - $src: fileURLToPath(new URL('./src', import.meta.url)) + $src: fileURLToPath(new URL('./src', import.meta.url)), + $themes: fileURLToPath(new URL('./src/themes', import.meta.url)) + } + }, + css: { + preprocessorOptions: { + scss: { + api: 'modern-compiler', + loadPaths: [fileURLToPath(new URL('./src', import.meta.url))] + } } }, assetsInclude: ['**/*.svg'],