#!/bin/sh # Build minified bundles from the JSX sources (matches what's deployed). set -e cd "$(dirname "$0")" for f in components tweaks-panel app; do npx -y esbuild@0.24 "$f.jsx" --loader:.jsx=jsx --jsx=transform --minify --target=es2020 --outfile="$f.min.js" --log-level=warning done