[api-extractor] Support string literals in named exports (e.g. `export { foo as "module.exports" }`)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- nodejs, typescript
- Lĩnh vực
- tooling
Hướng nghiên cứu
Start with the @microsoft/api-extractor rollups scenario and reproduce the issue using the provided .d.ts declaration with a string-literal named export. Trace how the declaration is processed and verify that the export name remains "module.exports" rather than becoming module.exports.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Support string literals in named exports (e.g. export { foo as "module.exports" })
Repro steps
Use '@microsoft/api-extractor' to bundle a list of type definition files.
One of which contains a string literal named export
Expected result:
declare const foo = "bar";
export { foo as 'module.exports' };
Actual result:
declare const foo = "bar";
export { foo as module.exports };
Details
See: https://joyeecheung.github.io/blog/2025/12/30/require-esm-in-node-js-implementers-tales/
Standard questions
Please answer these questions to help us investigate your issue more quickly:
| Question | Answer |
|---|---|
@microsoft/api-extractor version? |
latest |
| Operating system? | max |
| API Extractor scenario? | rollups |
| Would you consider contributing a PR? | No |
| TypeScript compiler version? | latest |
Node.js version (node -v)? |
latest |
- Ngôn ngữ chính
- TypeScript
- Star
- 6.5k
- Fork
- 708
- Merge trung bình
- 4 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 62
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/rushstack
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Tất cả issue của microsoft/rushstack
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
IBM/node-sdk-core#373 ·
-
e2e-failure ready-to-code
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
chore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100