BU

Bun Dev Tooling

Bun's built-in bundler, runner, and dev tools

Details

Language / Topic
bunBun
Category
Tooling

Rules

balanced
- Use `bun install` for fast dependency installation with native lockfile (`bun.lockb`) — 10-100x faster than npm/yarn.
- Use `bunx` instead of `npx` for one-off package execution — Bun's package runner has near-instant startup.
- Use `bun build` for bundling TypeScript/JSX without a separate bundler — Bun handles transpilation and tree-shaking natively.
- Use Bun's built-in bundler (`bun build`) instead of webpack/esbuild/rollup.
- Use `bunx` instead of `npx` for running CLI tools.
- Use `bun --hot` for development server hot reloading.
- Use `bun build --compile` to create standalone executables.