15 lines
688 B
TypeScript
15 lines
688 B
TypeScript
import tailwindcss from "@tailwindcss/vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
// The same build runs in the browser and inside the Tauri desktop shell (apps/desktop).
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
clearScreen: false,
|
|
server: { port: 5173, strictPort: true },
|
|
// No source maps in production: the browser gets minified code only, never the readable sources.
|
|
build: { target: "es2022", sourcemap: false },
|
|
// Whole-app renders type character by character; on a busy CI runner they pass 5 s.
|
|
test: { environment: "jsdom", setupFiles: ["./src/test-setup.ts"], testTimeout: 20_000 },
|
|
});
|