using `clean: true` with multiple builds leads to missing output files
Open
- 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
Assessment
This issue has not been assessed yet.