tsup
The simplest and fastest way to bundle your TypeScript libraries
...It builds on extremely fast tooling under the hood to deliver near-instant feedback loops even in large monorepos. The design goal is to let you publish modern libraries without hand-crafting long build scripts: point it at an entry file and it emits multiple targets, formats, and type declarations. It handles common library needs out of the box—like generating both ESM and CJS, bundling assets, and preserving or treeshaking dependencies—while staying flexible through minimal flags. Because it embraces convention over configuration, it’s easy to adopt as a drop-in replacement for heavier bundlers in simple packages, yet it scales when you need custom externals, minification, or watch modes. ...