egoist / egoist/tsup

ES5 minification error

Open
#686 0 comments 0 reactions 0 assignees View on GitHub
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

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.