egoist / egoist/tsup

using `clean: true` with multiple builds leads to missing output files

Open
#670 2 comments 10 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.3k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

```ts
import { defineConfig } from 'tsup'

export default defineConfig([
{
entry: ['src/index.ts'],
format: ['cjs', 'esm'],
clean: true,
},
{
entry: ['src/index.ssr.ts'],
format: ['esm'],
clean: true,
},
])
```

When I save either entry point, the output file for the other build is erroneously deleted.

I tried enabling `clean: true` for the first build only, but it didn't help.

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.