From 73dd672fdbe0cd9ecff344bee9a266f3d297816b Mon Sep 17 00:00:00 2001 From: Theis Gaedigk Date: Wed, 8 Jul 2026 18:25:36 +0200 Subject: [PATCH] fix: cannot build prod --- frontend/vite.config.ts | 4 ++-- shared/tsconfig.json | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index b87fac5..b307658 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -2,14 +2,14 @@ import { defineConfig } from "vite"; import react, { reactCompilerPreset } from "@vitejs/plugin-react"; import babel from "@rolldown/plugin-babel"; import tailwindcss from "@tailwindcss/vite"; -import { TanStackRouterVite } from "@tanstack/router-vite-plugin"; +import { tanstackRouter } from "@tanstack/router-vite-plugin"; // https://vite.dev/config/ export default defineConfig({ plugins: [ react(), tailwindcss(), - TanStackRouterVite(), + tanstackRouter(), babel({ presets: [reactCompilerPreset()] }), ], }); diff --git a/shared/tsconfig.json b/shared/tsconfig.json index aadaf6b..ea782f6 100644 --- a/shared/tsconfig.json +++ b/shared/tsconfig.json @@ -1,7 +1,16 @@ { "extends": "./tsconfig.base.json", - "include": ["src/**/*.ts"], "compilerOptions": { - "noEmit": true - } + "composite": true, + "declaration": true, + "declarationMap": true, + "emitDeclarationOnly": true, + "outDir": "./dist/refs", + "module": "CommonJS", + "moduleResolution": "Node", + "strict": true, + "skipLibCheck": true, + "ignoreDeprecations": "6.0" + }, + "include": ["src/**/*.ts"] }