在 ts 文件使用动态 require,路径没有转化
Open
question
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 275
- PR merge metrics
- No merged PRs in 30d
Description
相关编译配置
`
{
external: ['electron'],
format: ['cjs'],
splitting: false,
}
`
编译后的文件

Contributor guide
Research direction
Start by reproducing the reported compilation with external set to electron, CommonJS output, and splitting disabled, then inspect the compiled file shown in the issue image. Trace how the dynamic require path is handled; done means the compiled output transforms the path correctly. No source file or test is named in the report.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100