egoist / egoist/tsup

Return/intercept output from build export

Open
#699 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 nice is tsup returned the compiled output when used with the named `build`export. I leverage this fantastic little module within in a build tool and need access to the transformed output. Ideally, being able to intercept the output before it is written:

```js
import { build } from 'tsup';

build({ /* options */ }).then(code => {
console.log(code) // code should return a string or buffer of output
})
```

As of right now the build export returns `void` - Some low level support here would be greatly appreciated. Thanks.

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.