dts 出现构建内存溢出
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 274
- PR merge metrics
- No merged PRs in 30d
Description
tsup@8.4.0
DTS Build start
node:events:502
throw er; // Unhandled 'error' event
^
Error [ERR_WORKER_OUT_OF_MEMORY]: Worker terminated due to reaching memory limit: JS heap out of memory
at [kOnExit] (node:internal/worker:313:26)
at Worker..onexit (node:internal/worker:229:20)
Emitted 'error' event on Worker instance at:
at [kOnExit] (node:internal/worker:313:12)
at Worker..onexit (node:internal/worker:229:20) {
code: 'ERR_WORKER_OUT_OF_MEMORY'
}
Node.js v22.12.0
构建 dts 出现错误
配置如下
{
format: ['esm'],
dts: true,
splitting: true,
bundle: false,
tsconfig: './tsconfig.lib.json',
}
Contributor guide
Research direction
The report provides no repository file, test, or entry point; it only names tsup@8.4.0, Node.js v22.12.0, and a configuration with DTS generation enabled. Start by reproducing the DTS build with that configuration and verify the ERR_WORKER_OUT_OF_MEMORY failure; the work is done when the reported setup completes its DTS build without that error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, 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