import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

// Tauri-Dev-Setup: fester Port, kein clearScreen (Rust-Logs sichtbar lassen)
export default defineConfig({
  plugins: [react()],
  clearScreen: false,
  server: {
    port: 1420,
    strictPort: true,
  },
  build: {
    // WebView2 ist Chromium — moderne Targets ok
    target: "chrome105",
    outDir: "dist",
  },
});
