https://github.com/bunup/bunup
📦 Bundles your TypeScript libraries faster than you can say "bundle"
https://github.com/bunup/bunup
build-tool bun bundler typescript
Last synced: 21 days ago
JSON representation
📦 Bundles your TypeScript libraries faster than you can say "bundle"
- Host: GitHub
- URL: https://github.com/bunup/bunup
- Owner: bunup
- License: mit
- Created: 2025-03-13T18:27:24.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2026-02-18T10:47:35.000Z (22 days ago)
- Last Synced: 2026-02-18T14:24:28.407Z (22 days ago)
- Topics: build-tool, bun, bundler, typescript
- Language: TypeScript
- Homepage: http://bunup.dev
- Size: 41.6 MB
- Stars: 488
- Watchers: 3
- Forks: 11
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README


[](https://npmjs.com/package/bunup)
[](https://bun.com)
[](https://github.com/sponsors/arshad-yaseen)
Bunup helps you ship TypeScript/React libraries faster with great DX — built on [Bun](https://bun.com)'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:
```ts
// src/index.ts
export function greet(name: string): string {
return `Hello, ${name}!`;
}
```
Build it instantly:
```bash
bunx bunup
```
Outputs to `dist/` with ESM and `.d.ts` types.
Need CommonJS too?
```bash
bunx bunup --format esm,cjs
```
Want to generate and sync package exports automatically?
```bash
bunx bunup --exports
```
## Scaffold
Spin up a modern, ready-to-publish TypeScript or React component library (or a basic starter) in ~10 seconds:
```bash
bunx @bunup/cli@latest create
```
See more in [Scaffold with Bunup](https://bunup.dev/docs/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.ts` files
- 🪓 **[Declaration splitting](https://bunup.dev/docs/guide/typescript-declarations#declaration-splitting)** — smaller, cleaner type bundles
- 🔋 **Batteries included** — auto-exports, unused dependency detection, and more
- 🏗️ **[Workspace-ready](https://bunup.dev/docs/guide/workspaces)** — build multiple packages from one config and one command
For more, see the full documentation: https://bunup.dev
## 📚 Examples
Check out the [examples directory](./examples) for example usage:
- [Simple TypeScript library](./examples/basic)
- [Workspace with multiple packages](./examples/basic-monorepo)
- [React component library styled with plain CSS](./examples/react-with-pure-css)
- [React component library styled with CSS Modules](./examples/react-with-css-modules)
- [React component library styled with Tailwind CSS](./examples/react-with-tailwindcss)
## ❤️ Contributing
We welcome contributions! Please read the [contributing guide](CONTRIBUTING.md).


