Documentation
¶
Overview ¶
Command bundle builds vibekit's browser client: it bundles the TypeScript entrypoints with esbuild (a Go library — no Node, no npm, per the fleet's no-Node-in-the-builder doctrine), assembles the CSS bundle from the manifest files, and writes precompressed .gz siblings for every emitted text asset.
It replaces the previous tsc-emit pipeline (per-module JS served over an importmap: ~260 uncached module fetches per page load) with three cacheable artifacts: /app.js (+ hashed lazy chunks), /sw.js, /style.css. tsc remains the TYPE gate (run with --noEmit in CI and the Docker build); esbuild does not typecheck.
Usage: go run ./cmd/bundle (from the repo root; also run by the Dockerfile builder stage). Inputs are static-src/ plus the library sources under static-src/node_modules/ (npm install locally; registry tarballs in the Docker build). Outputs land in static/, which go:embed ships.