egoist / tsup

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

Allow es5 targeting on IIFE again (changed since 7.3.0) #1065

Open TMB-OllyDawe opened 6 months ago

TMB-OllyDawe commented 6 months ago

I have a need to generate an IIFE-formatted output with an es5 target, which worked in v7.2.0 and below. However since v7.3.0 there's been an additional condition on swc's transformation that the format must be cjs. Is it possible to add an override to allow es5 targetting for non-cjs formats again?

Upvote & Fund

Fund with Polar