npm / tsup
tsup
What changed in tsup 7 to 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.
3 breaking1 new APIs and options2 tooling8 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inittsup 92 changes
Breaking changes 1
Removes baseUrl in tsconfig.
New APIs and options 1
The Plugin type is now exposed for use by developers.
tsup 85 changes
Breaking changes 1
Node versions below 18 are no longer supported.
Tooling 1
An experimental declaration-file rollup using @microsoft/api-extractor was added.
Fixes and other changes 3
Adds script tag validation.
Updates esbuild to fix an issue with sourcemap sources.
PostCSS is now awaited for async plugins, ensuring their processing completes.
tsup 77 changes
Breaking changes 1
tsup now requires Node.js 16 or above.
Tooling 1
tsup now supports svelte-preprocess.
Fixes and other changes 5
External matching now handles root paths on Unix-like systems and Windows.
Running Terser for IIFE output now preserves top-level declarations.
The clash between SWC and Terser minification has been removed.
Terser log messages are now prefixed with its name.
Updating esbuild preserves unknown directives during bundling.