bun-build

v2026.09.24

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.

GitHub
安装命令
npx skhub add laurigates/bun-build
Markdown
SKILL.md

/bun:build

Bundle JavaScript/TypeScript or compile to standalone executable.

When to Use This Skill

ScenarioUse this skillAlternative
Quick production bundle of an entry pointYesN/A
Compiling to a standalone executableYesN/A
Building for a specific target (browser/bun/node)YesN/A
Configuring complex build pipelinesNo - use bun-developmentFull build configuration guidance
Running project build scripts (bun run build)No - use bun-developmentN/A

Parameters

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

Execution

Production bundle:

bun build $ENTRY --outdir=dist --minify --sourcemap=external

Standalone executable:

bun build --compile --minify $ENTRY --outfile={{ OUTFILE | default: "app" }}

Development bundle:

bun build $ENTRY --outdir=dist --sourcemap=inline

Build Targets

# 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
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

MIT

源路径

typescript-plugin/skills/bun-build

默认分支

main

最新提交

1668324

Tree SHA

b2d4cc3