egoist / egoist/tsup

[bug] error occured in`dts` build

Open
#955 1 comment 1 reaction 0 assignees View on GitHub
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:
image
When I build using tsup, sometimes I get errors like this
image
unfortunately, I can't provide a use case as this is happening occasionally. but it did happen

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.