Tsup TypeScript Bundler

8.5.1 · deprecated · verified Sat Apr 18

Tsup is a zero-config TypeScript bundler powered by esbuild, designed to simplify bundling for JavaScript and TypeScript libraries. The current stable version is 8.5.1. While it previously had a regular release cadence with feature additions and bug fixes, the project is officially deprecated as of version 8.5.1.

Common errors

Warnings

Install

Quickstart

Demonstrates bundling a single TypeScript file (src/index.ts) into CommonJS and ES Module formats, generating TypeScript declaration files. Assumes `tsup` is installed as a dev dependency in your project.

npx tsup src/index.ts --format esm,cjs --dts

view raw JSON →