Bunup helps you ship TypeScript/React libraries faster with great DX โ built on Bun's native bundler.
Performance
Instant builds by design. With Bunโs native speed, builds and rebuilds are extremely quick, even in monorepos. Faster feedback loops, higher productivity, calmer flow.
๐ Quick Start
Create a TypeScript file:
// src/index.ts
export function greet(name: string): string {
return `Hello, ${name}!`;
}
Build it instantly:
bunx bunup
Outputs to dist/ with ESM and .d.ts types.
Need CommonJS too?
bunx bunup --format esm,cjs
Want to generate and sync package exports automatically?
bunx bunup --exports
Scaffold
Spin up a modern, ready-to-publish TypeScript or React component library (or a basic starter) in ~10 seconds:
bunx @bunup/cli@latest create
See more in Scaffold with Bunup.
Features
- โก Instant builds โ lightning-fast by default
- ๐จ CSS support out of the box โ import CSS directly, with built-in CSS Modules support.
- ๐ TypeScript declarations โ clean, accurate
.d.tsfiles - ๐ช Declaration splitting โ smaller, cleaner type bundles
- ๐ Batteries included โ auto-exports, unused dependency detection, and more
- ๐๏ธ Workspace-ready โ build multiple packages from one config and one command
For more, see the full documentation: https://bunup.dev
๐ Examples
Check out the examples directory for example usage:
- Simple TypeScript library
- Workspace with multiple packages
- React component library styled with plain CSS
- React component library styled with CSS Modules
- React component library styled with Tailwind CSS
โค๏ธ Contributing
We welcome contributions! Please read the contributing guide.