What problem does it solve? Configuring JavaScript and TypeScript bundling involves many interdependent options like targets, formats, minification, code splitting, and sourcemaps, and getting them wrong produces broken or bloated builds. This Skill provides complete, correct guidance for bundling with Bun's built-in bundler via both the CLI and the Bun.build JavaScript API. ## Core Features & Use Cases - CLI and API Bundling: Covers both bun build command-line flags and the full Bun.build() options object including entrypoints, outdir, target, and format. - Production Optimization: Guidance on minification, code splitting, sourcemaps, tree shaking, define constants, and externalizing dependencies. - Loaders and Plugins: Documents built-in loaders for assets like SVG, PNG, and CSS, plus the plugin API with onResolve and onLoad hooks. - Use Case: A developer migrating from esbuild needs to produce a minified, code-split browser bundle with external sourcemaps and environment defines; this Skill provides the exact Bun.build configuration. ## Quick Start Ask the assistant to bundle your TypeScript entry point for the browser with minification and external sourcemaps using Bun.build.