bundle

command
v0.2.49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: GPL-2.0, GPL-3.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL