import { defineConfig } from "vite"; import { svelte } from "@sveltejs/vite-plugin-svelte"; export default defineConfig({ plugins: [svelte()], clearScreen: false, server: { port: 1421, strictPort: true, watch: { // Never watch the Rust build dir: cargo locks files mid-compile, // which crashes Vite's watcher (EBUSY) and kills tauri dev. ignored: ["**/src-tauri/**", "**/crates/**", "**/target/**"], }, }, });