Allow es5 targeting on IIFE again (changed since 7.3.0)
Open
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 275
- PR merge metrics
- No merged PRs in 30d
Description
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](https://github.com/egoist/tsup/blob/8c26e63c92711d60c05aedd3cdc358530ba266c5/src/plugins/swc-target.ts#L26) 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?
Contributor guide
Assessment
This issue has not been assessed yet.