import { defineConfig } from "vite"; import { svelte } from "@sveltejs/vite-plugin-svelte"; // Tauri 2 expects the dev server on a fixed port and forwards the URL into // the webview. https://v2.tauri.app/start/frontend/vite/ export default defineConfig(async () => ({ plugins: [svelte()], clearScreen: false, server: { port: 1420, strictPort: true, host: "127.0.0.1", hmr: { protocol: "ws", host: "127.0.0.1", port: 1421 }, watch: { ignored: ["**/src-tauri/**"] }, }, build: { target: "esnext", minify: "esbuild", sourcemap: false, }, }));