Bun
Build Commands
Bundle JavaScript and TypeScript with Bun's fast bundler. Create optimized builds for production with tree shaking and minification.
8 commands
Pro Tips
Use '--minify' for production builds with smaller output.
'--compile' creates a standalone executable from your code.
Use '--splitting' for code splitting with multiple entry points.
Common Mistakes
Bun's bundler is newer than esbuild/webpack - test output thoroughly.
Some bundler plugins from other ecosystems won't work with Bun.