egoist / egoist/tsup

Allow es5 targeting on IIFE again (changed since 7.3.0)

Open
#1,065 0 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.