import { defineConfig } from "vite"; import { svelte } from "@sveltejs/vite-plugin-svelte"; // Tauri expects a fixed port and serves the built assets from dist/. export default defineConfig({ plugins: [svelte()], clearScreen: false, server: { port: 1420, strictPort: true, watch: { // Without this, Vite's watcher races cargo writing target/debug/deps/*.dll // on Windows and dies with EBUSY mid-build. ignored: ["**/src-tauri/**"], }, }, build: { target: "esnext", outDir: "dist", }, });