I've read the tsup documentation carefully, but still haven't found a way to read the result of esbuild. The closest method so far is to obtain the code string through the renderChunk method of plugin.
It's also possible that I missed some important documentation by mistake. If there is already a way to do this please feel free to correct me. Thanks. 🌹
Get whether the build method can be supported to return the result of esbuild, like this:
import { type BuildResult } from "esbuild";
function build(_options: Options): Promise<BuildResult[]>;
If possible I would like to submit a PR to support this feature. Of course there may be a better way, please feel free to let me know. Thanks.
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
I've read the
tsup
documentation carefully, but still haven't found a way to read theresult
ofesbuild
. The closest method so far is to obtain thecode
string through therenderChunk
method ofplugin
.It's also possible that I missed some important documentation by mistake. If there is already a way to do this please feel free to correct me. Thanks. 🌹
Get whether the
build
method can be supported to return theresult
ofesbuild
, like this:If possible I would like to submit a
PR
to support this feature. Of course there may be a better way, please feel free to let me know. Thanks.Upvote & Fund