talira

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.

  1. tsdown Library bundler for TypeScript and JavaScript, built on Rolldown
  2. Rollup ES module bundler for JavaScript libraries and apps, with tree shaking
  3. TSDX Zero-config CLI for developing, testing and publishing TypeScript packages
  4. esbuild An extremely fast bundler for the web
  5. rollup-plugin-dts Bundle TypeScript .d.ts declaration files with Rollup
  6. Parcel The zero configuration build tool for the web

Compare tsup with the top 3