What problem does it solve?
Bun production bundles can be slow to set up and hard to optimize, leading to oversized builds, inconsistent environments, and painful deployment cycles. This Skill helps you produce efficient, production-ready outputs with correct targets, formats, and optimizations.
Core Features & Use Cases
- Create optimized bundles with Bun.build: Configure entrypoints, output directories, target platform, and module format for browser, node, or bun runtime.
- Apply production optimizations: Enable minification, splitting, naming with hashing for caching, and external source maps for debugging.
- Use environment-specific builds: Generate separate configurations (development vs production) using build-time defines like NODE_ENV and API URLs.
- Use supporting build references: Leverage included reference docs for targets, plugins, and optimization patterns to adjust your setup as your project grows.
Use case example: you are deploying a frontend app and need smaller, cache-friendly bundles plus hashed filenames and external source maps for production debugging.
Quick Start
Ask an AI: "Create a production build setup for my TypeScript app using Bun's native bundler, targeting the browser with ESM output, minification, code splitting, hashed filenames, and external sourcemaps, and update my package.json with build scripts."