Closed dockfries closed 9 months ago
This PR contains two fixes.
One is the extra ts type ReleaseType in the build, and the other is that when tsup is packing, it encounters picocolors to generate esm and builds an invalid __require. Dynamic require of "tty" is not supported
ReleaseType
tsup
picocolors
__require
Dynamic require of "tty" is not supported
fixes #9
referenced from 为什么是 tsup and discussion Make require work in ESM bundle
@antfu very need this to make bumpp works in esm context
Description
This PR contains two fixes.
One is the extra ts type
ReleaseType
in the build, and the other is that whentsup
is packing, it encounterspicocolors
to generate esm and builds an invalid__require
.Dynamic require of "tty" is not supported
Linked Issues
fixes #9
Additional context
referenced from 为什么是 tsup and discussion Make require work in ESM bundle