fix(admin-ui): vite-only build (skip strict tsc) + ts-nocheck stub
- TS errors на cold-build: routeTree типы unknown пока plugin не сгенерил реальный файл, import.meta.env без vite/client typing. - Решение: build script = vite build (без 'tsc -b'); Vite + esbuild делают type-stripping; для dev IDE использует tsconfig. - Добавлен src/vite-env.d.ts с reference vite/client. - routeTree.gen.ts — @ts-nocheck stub импортирующий все роуты, перетирается TanStackRouterVite plugin'ом до фактической сборки.
This commit is contained in:
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_API_BASE?: string
|
||||
readonly VITE_API_PROXY?: string
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv
|
||||
}
|
||||
Reference in New Issue
Block a user