[bug] error occured in`dts` build
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 275
- PR merge metrics
- No merged PRs in 30d
Description
# describe
When the tsup config ts is declared as follows,I don't know if it's due to my configuration
```javascript
import { defineConfig } from "tsup";
export default defineConfig([
{
entry: ["src/*.ts"],
clean: true,
outDir: "dist",
target: "esnext",
format: ["cjs", "esm"],
dts: true,
shims: true,
},
{
entry: ["src/api/*"], // this will makes same error,occasionally
clean: true,
dts: true,
target: "esnext",
outDir: "dist/api",
format: ["cjs", "esm"],
platform: "browser",
shims: true,
},
]);
```
this is production directory:
When I build using tsup, sometimes I get errors like this
unfortunately, I can't provide a use case as this is happening occasionally. but it did happen
Contributor guide
Research direction
Start by reviewing the two tsup defineConfig entries and the intermittent dts build error shown in the issue screenshots. Since no reproducible use case is provided, first isolate which entry or configuration triggers the failure; done means having a concrete reproduction and a verified fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100