Files
zeekayandHanzo Dev 12b64ce59f finish shadcn rip: green build on @hanzo/ui 8.0.48 + @hanzo/gui 8.0.2
Completes the interrupted kill/shadcn work (81ffa84):
- vite: GUI_TARGET/TAMAGUI_TARGET=web defines + react-native/react-native-svg
  web aliases (@hanzogui/react-native-svg) — fixes the unresolved
  react-native-svg import from @hanzogui/lucide-icons-2
- deps: @hanzo/gui 8.0.2, @hanzo/ui 8.0.48, @hanzogui/lucide-icons-2 8.0.2;
  react/react-dom aligned at 19.2.8
- docs/: drop cdn.tailwindcss.com from all 3 static pages — rewritten on
  plain-CSS tokens (docs/docs.css), same visual design
- kill last residue: vscode tailwind extension rec, stale LLM.md stack notes
- gui-env.d.ts: eslint disable for the intentional declaration-merge pattern

typescript stays 5.8.3: TS7.0.2 builds green here but typescript-eslint
(latest 8.66.0, peer <6.1.0) crashes against it — lint is part of this
repo's gate, so 5.x is correct until typescript-eslint supports TS7.

Verified: tsc -b && vite build green; playwright render of the built app —
full UI styled (cards/selects/switches/sliders), zero console errors.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-08 15:56:25 -07:00

34 lines
942 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
define: {
// @hanzo/gui builds one tree for web, native and desktop and branches on
// this at build time; on web it must be "web" so the native code is dropped.
"process.env.GUI_TARGET": JSON.stringify("web"),
"process.env.TAMAGUI_TARGET": JSON.stringify("web"),
},
resolve: {
alias: {
// The web bindings for the two native modules @hanzo/gui's components
// import. Same names, web implementations.
"react-native": "react-native-web",
"react-native-svg": "@hanzogui/react-native-svg",
},
},
server: {
proxy: {
"/api": {
target: "http://localhost:8000",
changeOrigin: true,
},
"/health": {
target: "http://localhost:8000",
changeOrigin: true,
},
},
},
});