Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

tsup

> 编程语言
Open source

The simplest and fastest way to bundle your TypeScript libraries.

11.3K stars0 likes1 views
WebsiteGitHub

About

The simplest and fastest way to bundle your TypeScript libraries.

[!WARNING] This project is not actively maintained anymore. Please consider using tsdown instead. Read more in the migration guide.

tsup

Bundle your TypeScript library with no config, powered by esbuild.

What can it bundle?

Anything that's supported by Node.js natively, namely .js, .json, .mjs. And TypeScript .ts, .tsx. CSS support is experimental.

⚙️ Install

Install it locally in your project folder:

bash
npm i tsup -D
# Or Yarn
yarn add tsup --dev
# Or pnpm
pnpm add tsup -D

You can also install it globally but it's not recommended.

Usage

Bundle files

bash
tsup [...files]

Files are written into ./dist.

You can bundle multiple files in one go:

bash
tsup src/index.ts src/cli.ts

This will output dist/index.js and dist/cli.js.

Documentation

For complete usages, please dive into the docs.

For all configuration options, please see the API docs.

Discussions

Head over to the discussions to share your ideas.

Sponsors

Project Stats

License

MIT © EGOIST

Issues· 425 open

View all issuesOpen on GitHub
  • #518

    Dependency Dashboard

    Updated Sep 26, 2026
  • #1413

    dts build fails on TypeScript 6: baseUrl injected even when tsconfig declares none (TS5101 is now a hard error)

    Updated Sep 9, 2026
  • #1410

    `dts` build: a worker that dies without posting a message leaves the build promise pending — tsup exits 0 having emitted no declarations

    Updated Aug 31, 2026
  • #1408

    Add Support to Typescript V7

    Updated Jul 30, 2026
  • #1405

    bug: resolve TypeScript 7 build breakage caused by tsup/rollup-plugin-dts incompatibility during d.ts generation

    Updated Jul 14, 2026
  • #1406

    Bump esbuild to 0.28

    Updated Jul 9, 2026
  • #1000

    bundle: false only includes entrypoint modules in output

    Updated Jun 30, 2026
  • #1389

    Support TypeScript 6

    Updated May 26, 2026
  • #1388

    DTS Build error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0.

    Updated May 26, 2026
  • #1397

    Insonsistent handling of the "browser" field

    Updated May 6, 2026

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言