ES5 minification error
Open
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 275
- PR merge metrics
- No merged PRs in 30d
Description
When upgrading from `6.1.2` to `6.2.1`, we found that build result leads to runtime error when `eval` is assigned to a variable. This is a `swc` issue, but can be temporarily resolve by setting mangle param `keep_fnames` to `true` in [es5.ts](https://github.com/egoist/tsup/blob/dev/src/plugins/es5.ts#L41)
Relavant `swc` issue: [#5441](https://github.com/swc-project/swc/issues/5441)
Contributor guide
Assessment
This issue has not been assessed yet.