mirror of
https://github.com/hanzoai/hanzo.network.git
synced 2026-09-25 02:14:24 +00:00
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]>
20 lines
381 B
TypeScript
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"),
|
|
},
|
|
},
|
|
});
|