Files
photoreport/apps/app/vite.config.ts
spark 4e1d293d06
ci / rust (push) Successful in 8m59s
ci / typescript (push) Successful in 11m41s
App tests: 20 s limit, whole-app renders went past 5 s on a busy runner
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 12:49:47 +01:00

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 },
});