Files
hanzo.network/vite.config.ts
T
zeekayandHanzo Dev 7b4afb7a27 drop the dev tagger plugin: the compiler already annotates, and this one did not exist
The dependency was an unrelated package that happens to share a plausible name,
pinned to a version that was never published, so --frozen-lockfile 404'd and
neither install nor build ran at all. Importing it at the top of vite.config.ts
meant the config itself could not load.

Nothing is lost by deleting rather than replacing it. The gui compiler emits the
same annotation from the AST pass that already walks every component, gated on
NODE_ENV=development: data-is (which component), data-in (the component it is
used inside) and data-at (file:line). It runs AFTER flattening, so the tag names
the component that actually rendered rather than one the optimizer removed.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-05 21:45:37 -07:00

20 lines
381 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import path from "path";
// https://vitejs.dev/config/
export default defineConfig({
server: {
host: true, // use 0.0.0.0 instead of ::
port: 8080,
},
plugins: [
react(),
].filter(Boolean),
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
});