Agent skill · software engineering · secondsky
bun-bundler
This skill should be used when the user asks about "bun build", "Bun.build", "bundling with Bun", "code splitting", "tree shaking", "minification", "sourcemaps", "bundle optimization", "esbuild alternative", "building for production", "bundling TypeScript", "bundling for browser", "bundling for Node", or JavaScript/TypeScript bundling with Bun.
Why this skill is useful
Provides specific commands and options for using Bun as a bundler, which the AI wouldn't reliably generate on its own.
What it needs
Requires bun installed locally. About 4k tokens when loaded. Last updated 2026-08-06. 204 stars on the source repository.
What this skill does
Bun Bundler Bun's bundler is a fast JavaScript/TypeScript bundler built on the same engine as Bun's runtime. It's an esbuild-compatible alternative with native performance. Quick Start CLI JavaScript API Bun.build Options CLI Flags Flag Description ------ ------------- --outdir Output directory --outfile Output single file --target browser, bun, node --format esm, cjs, iife --minify Enable minification --minify-whitespace Minify whitespace only --minify-identifiers Minify identifiers only --minify-syntax Minify syntax only --splitting Enable code splitting --sourcemap none, inline, external, linked --external Mark packages as external --define Define compile-time constants --loader Custom loaders for extensions --public-path Public path for assets --root Root directory --entry-naming Entry point naming pattern --chunk-naming Chunk naming pattern --asset-naming Asset naming pattern Target Environments Browser (default) Bun Runtime Node.js Code Splitting Shared dependencies are extracted into separate chunks automatically. Loaders Loader Extensions Output -------- ------------ -------- js .js, .mjs, .cjs JavaScript jsx .jsx JavaScript ts .ts, .mts, .cts JavaScript tsx .tsx JavaScript json .json JavaScript toml .toml JavaScript text - String export file - File path export base64 - Base64 string dataurl - Data URL css .css CSS file Custom loaders: Plugins Build Output Common Patterns Production Build Library Build Build Script Run: bun run build.ts Common Errors Error Cause Fix ------- ------- ----- Could not resolve Missing import Install package or fix path No matching export Named export missing Check export name Unexpected token Syntax error Fix source code Target not supported Invalid target Use browser, bun, or node When to Load References Load references/options.md when: Need complete option reference Configuring advanced features Load references/plugins.md when: Writing custom plugins Understanding plugin API Load references/macros.md when: Using compile-time ma …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills secondsky/bun-bundler