bun build ./app.tsx --outdir ./out --target browser --minify
Bundle for the browser with minification
Builds the React app in app.tsx into minified JavaScript aimed at browsers, tree-shaking unused code. The --target browser flag avoids Node-specific globals, and --minify shrinks output size. Output lands in the out folder.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.