egoist / tsup

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

Esbuild Escape Hatch #1121

Open jd-carroll opened 1 month ago

jd-carroll commented 1 month ago

It would be very useful to have direct access to the esbuild launch args. Similar to esbuildPlugins, a "esbuildParams" would be useful in one off situations where the tsup API does not provide functionality.

As an example, it would be great if we could provide an output file name and not just an outDir. The work around I've come up with for now is to write a custom plugin to rename the assets at the end.

I can absolutely appreciate the philosophy of "this is a wrapper" and for advanced cases use esbuild directly. However, I am trying to standardize our tooling and having direct access would allow us to standardize on tsup.

Upvote & Fund

Fund with Polar