/// import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; // Tauri expects a fixed port in dev and relative asset paths in prod builds. export default defineConfig({ plugins: [react()], base: './', clearScreen: false, server: { port: 1420, strictPort: true, }, envPrefix: ['VITE_', 'TAURI_'], build: { target: 'es2021', sourcemap: !!process.env.TAURI_DEBUG, }, test: { environment: 'jsdom', globals: true, setupFiles: ['./tests/setup.ts'], css: false, }, });