egoist / egoist/tsup

在 ts 文件使用动态 require,路径没有转化

Open
#610 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
TypeScript
Stars
11.3k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

相关编译配置
`
{
external: ['electron'],
format: ['cjs'],
splitting: false,
}
`

编译后的文件
![image](https://user-images.githubusercontent.com/20579561/163515880-6e853370-2b66-4697-b7cd-b5133f435d95.png)

Contributor guide

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.