import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; export default defineConfig({ plugins: [react()], css: { preprocessorOptions: { // Opts into Dart Sass's modern API — avoids the "legacy-js-api" // deprecation warning on every build (Vite still defaults to the // legacy API for backward compatibility). scss: { api: "modern-compiler", }, }, }, });