egoist / tsup

The simplest and fastest way to bundle your TypeScript libraries.
https://tsup.egoist.dev
MIT License
9.01k stars 217 forks source link

Consider Replacing `rollup-plugin-dts` with another option #993

Open crutchcorn opened 1 year ago

crutchcorn commented 1 year ago

While using TSUp for TanStack Form, I ran into an issue where this in a class context was being replaced with this$1 incorrectly.

As it turns out, this is a bug in rollup-plugin-dts: https://github.com/Swatinem/rollup-plugin-dts/issues/279

This in itself isn't a good reason to replace the package, however it seems that while I was investigating I saw that the package is in maintainance mode: https://github.com/Swatinem/rollup-plugin-dts/issues/277

Which might be a good enough reason to migrate off of the tool.

Upvote & Fund

Fund with Polar

segevfiner commented 1 year ago

Related: https://github.com/egoist/tsup/issues/885.

toteto commented 11 months ago

What are the alternatives?

There is PR with experimental implementation #983

timocov commented 9 months ago

Here are discussion with some alternatives listed https://github.com/timocov/dts-bundle-generator/discussions/68 (but keep in mind that the discussion happened a long time ago and lots of things changed since then, but I think at least it will give some ideas).