Create your Link in Bio for Bluesky
at main 706 B view raw
1import { reactRouter } from "@react-router/dev/vite"; 2import { defineConfig } from "vite"; 3import tsconfigPaths from "vite-tsconfig-paths"; 4 5export default defineConfig({ 6 base: process.env.VITE_CONFIG_BASE ?? "/", 7 plugins: [reactRouter(), tsconfigPaths()], 8 build: { 9 target: "es2022", 10 }, 11 test: { 12 include: ["app/**/*.spec.ts"], 13 coverage: { 14 include: ["app/server/**/*.ts"], 15 exclude: ["app/**/*.spec.ts", "app/generated/**/*.ts"], 16 }, 17 // vitest-environment-vprisma 18 globals: true, 19 environment: "vprisma", 20 setupFiles: [ 21 "vitest-environment-vprisma/setup", 22 "./vitest/vitest.setup.ts", 23 ], 24 globalSetup: ["./vitest/global-setup.ts"], 25 }, 26});