kaneo (minimalist kanban) fork to experiment adding a tangled integration
github.com/usekaneo/kaneo
1import path from "node:path";
2import tailwindcss from "@tailwindcss/vite";
3import { tanstackRouter } from "@tanstack/router-plugin/vite";
4import react from "@vitejs/plugin-react";
5import { defineConfig } from "vite";
6import packageJson from "../../package.json";
7
8export default defineConfig({
9 define: {
10 __APP_VERSION__: JSON.stringify(packageJson.version),
11 },
12 base: "/",
13 plugins: [
14 tanstackRouter({ autoCodeSplitting: true }),
15 tailwindcss(),
16 react({
17 babel: {
18 plugins: [["babel-plugin-react-compiler"]],
19 },
20 }),
21 ],
22 server: {
23 host: true,
24 hmr: true,
25 port: 5173,
26 },
27 optimizeDeps: {
28 exclude: ["better-auth"],
29 },
30 ssr: {
31 noExternal: ["better-auth"],
32 },
33 resolve: {
34 alias: {
35 "@": path.resolve(__dirname, "./src"),
36 "@i18n": path.resolve(__dirname, "../../i18n"),
37 },
38 },
39 build: {
40 rollupOptions: {
41 output: {
42 manualChunks: undefined,
43 },
44 },
45 commonjsOptions: {
46 include: [/better-auth/, /node_modules/],
47 transformMixedEsModules: true,
48 },
49 target: "esnext",
50 },
51});