egoist / egoist/tsup

Esbuild Escape Hatch

Open
#1,121 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

It would be very useful to have direct access to the esbuild launch args. Similar to esbuildPlugins, a "esbuildParams" would be useful in one off situations where the tsup API does not provide functionality.

As an example, it would be great if we could provide an output file name and not just an outDir. The work around I've come up with for now is to write a custom plugin to rename the assets at the end.

I can absolutely appreciate the philosophy of "this is a wrapper" and for advanced cases use esbuild directly. However, I am trying to standardize our tooling and having direct access would allow us to standardize on tsup.

Contributor guide

Open the contributing guide

Research direction

Start by tracing where tsup invokes esbuild and how the existing esbuildPlugins option is exposed. Compare the requested direct launch-argument access with the current outDir behavior; done means callers can pass supported esbuild parameters, including an output file name, without a custom renaming plugin.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.