Zero-config bundler for TypeScript libraries, powered by esbuild
open sourceMITfree
tsup bundles TypeScript libraries with no configuration, on top of esbuild. It takes .ts, .tsx, .js, .mjs and .json entry files and writes the bundles to ./dist, several entries at once, with experimental CSS support. Its maker, EGOIST, says it's no longer actively maintained and recommends moving to tsdown, with a migration guide.
Problems it solves
- bundle a TypeScript library for npm without writing a webpack or rollup config
- build my TypeScript package to dist quickly with esbuild
- compile several TypeScript entry points into a dist folder
Features
- Bundles TypeScript libraries with no config
- Built on esbuild
- Several entry files in one run, output to ./dist
- Experimental CSS support
Limitations
- Its maker says it's no longer actively maintained and recommends tsdown instead.1
Alternatives
The same job
These do what tsup does.
- tsdown Library bundler for TypeScript and JavaScript, built on Rolldown
- Rollup ES module bundler for JavaScript libraries and apps, with tree shaking
- TSDX Zero-config CLI for developing, testing and publishing TypeScript packages
- esbuild An extremely fast bundler for the web
- rollup-plugin-dts Bundle TypeScript .d.ts declaration files with Rollup
- Parcel The zero configuration build tool for the web
