#!/usr/bin/env bash # Builds the client JS bundle set -euo pipefail echo ">> Building client bundle" # Clean pub directory rm -rf pub/client mkdir -p pub/client # Bundle client code bun build src/client/index.tsx \ --outfile pub/client/index.js \ --target browser \ --minify echo ">> Client bundle created at pub/client/index.js" ls -lh pub/client/index.js