addiplus/claude-skill-pack/bun-builder
Claude Code and agent skill by addiplus/claude-skill-pack
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Bundle and build JavaScript/TypeScript with Bun's native bundler. Use when user needs to bundle apps, create executables, or optimize builds. Keywords: bun build, bundler, bundle, compile, executable, minify, tree-shake, esbuild alternative.
Install
npx vskill@latest install addiplus/claude-skill-pack/bun-builderSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as addiplus/claude-skill-pack/bun-builder.
Bun Builder
Bun's native bundler is faster than esbuild and webpack, with built-in TypeScript/JSX support and the ability to create standalone executables.
Quick Start
CLI Options
Basic Options
Bun.build() API
Creating Executables
Single-File Executable
Available Targets
| Target | Platform | Architecture | |
|---|---|---|---|
bun-linux-x64 | Linux | x64 | |
bun-linux-arm64 | Linux | ARM64 | |
bun-darwin-x64 | macOS | x64 | |
bun-darwin-arm64 | macOS | ARM64 (Apple Silicon) | |
bun-windows-x64 | Windows | x64 |
Embedding Files
Plugins
Plugin Structure
YAML Plugin Example
SVG Component Plugin
Loaders
Built-in loaders for different file types:
| Loader | Extensions | Output | |
|---|---|---|---|
js | .js, .mjs | JavaScript | |
jsx | .jsx | JSX → JavaScript | |
ts | .ts, .mts | TypeScript → JavaScript | |
tsx | .tsx | TSX → JavaScript | |
json | .json | JSON → JS object | |
toml | .toml | TOML → JS object | |
text | Any | Raw text string | |
file | Any | URL to asset | |
napi | .node | Native addon | |
wasm | .wasm | WebAssembly module |
Configuration (bunfig.toml)
Common Build Patterns
React SPA
Node.js Library
CLI Tool
Multi-Entry Build
Comparison with Alternatives
| Feature | Bun | esbuild | Vite | webpack | |
|---|---|---|---|---|---|
| Speed | Fastest | Fast | Fast (dev) | Slow | |
| TypeScript | Native | Native | Via plugin | Via loader | |
| Executables | Yes | No | No | No | |
| Dev server | Yes | No | Yes | Yes | |
| Plugins | Simple | Simple | Rollup | Complex | |
| Tree shaking | Yes | Yes | Yes | Yes | |
| Code splitting | Yes | Yes | Yes | Yes |
Troubleshooting
"Cannot resolve module"
- Check the import path
- Use
--externalfor packages not to bundle - Add to
externalarray
Large bundle size:
- Enable tree shaking (default)
- Use
--minify - Check for side-effect imports
- Use
--packages externalfor libraries
Source maps not working:
- Use
--sourcemap=externalfor production - Ensure source maps enabled in browser devtools
Plugin not loading files:
- Check filter regex pattern
- Ensure namespace matches between onResolve and onLoad
- Debug with console.log in plugin
Executable too large:
- Bun runtime is embedded (~90MB base)
- Use
--minify - Consider shipping as regular script for smaller size
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/bun-builder/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/addiplus/claude-skill-pack/bun-builder)