developit / developit/microbundle
Possible issue with missing type declaration files for ESM exports
- 主要语言
- JavaScript
- 星标
- 8.1k
- 派生
- 358
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi, this is possibly user error, but a recent routine release of my lib [react-flip-toolkit](https://github.com/aholachek/react-flip-toolkit) broke type declarations-- a user filed an [issue here](https://github.com/aholachek/react-flip-toolkit/issues/224) and when I view the analysis [on this page](https://arethetypeswrong.github.io/?p=react-flip-toolkit%407.2.0) I see that types are not found.
After digging around for a bit, it seems possible based on my reading of [this explanation](https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/UntypedResolution.md) that we need to package an `index.d.mts` alongside the `index.d.ts` automatically generated by microbundle.
贡献指南
这个仓库没有索引到贡献指南
调研方向
Start by reproducing the missing-type result for react-flip-toolkit 7.2.0 with the arethetypeswrong analysis and read the linked UntypedResolution explanation. Inspect how microbundle generates index.d.ts for ESM exports; done means the published package provides declarations that the analysis resolves correctly for that export path.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, typescript
- 领域
- build-system
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100