Skip to content
Back to skills

Bun Build

ASecurity

Bun build: bundle or compile JS/TS to production bundle or standalone binary. Use when the user wants to bundle, compile, or build for browser/bun/node target.

  • 60 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 3, 2026
developmentjavascripttypescriptjavabashnode

Security analysis

A100/100

Scanned November 25, 2026

npx -y skills add laurigates/claude-plugins --skill bun-build --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bun Build?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bun Build
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/laurigates-bun-build/badge)](https://www.skillsdirectory.com/skills/laurigates-bun-build)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: "Bun build: bundle or compile JS/TS to production bundle or standalone binary. Use when the user wants to bundle, compile, or build for browser/bun/node target."
args: <entry> [--compile] [--minify]
allowed-tools: Bash(bun build *), Read
argument-hint: ./src/index.ts [--compile] [--minify]
created: 2025-12-20
modified: 2026-11-14
reviewed: 2025-12-20
name: bun-build
---

# /bun:build

Bundle JavaScript/TypeScript or compile to standalone executable.

## When to Use This Skill

| Scenario | Use this skill | Alternative |
|----------|---------------|-------------|
| Quick production bundle of an entry point | Yes | N/A |
| Compiling to a standalone executable | Yes | N/A |
| Building for a specific target (browser/bun/node) | Yes | N/A |
| Configuring complex build pipelines | No - use `bun-development` | Full build configuration guidance |
| Running project build scripts (`bun run build`) | No - use `bun-development` | N/A |

## Parameters

- `entry` (required): Entry point file
- `--compile`: Create standalone executable
- `--minify`: Minify output

## Execution

**Production bundle:**
```bash
bun build $ENTRY --outdir=dist --minify --sourcemap=external
```

**Standalone executable:**
```bash
bun build --compile --minify $ENTRY --outfile={{ OUTFILE | default: "app" }}
```

**Development bundle:**
```bash
bun build $ENTRY --outdir=dist --sourcemap=inline
```

## Build Targets

```bash
# Browser (default)
bun build $ENTRY --target=browser --outdir=dist

# Bun runtime
bun build $ENTRY --target=bun --outdir=dist

# Node.js
bun build $ENTRY --target=node --outdir=dist
```

## Post-build

1. Report output file sizes
2. List generated files in output directory
3. For --compile: verify executable runs with `./app --help` or similar

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.