microsoft / microsoft/FeatureManagement-JavaScript
Include conditional exports in package.json
@zhiyuanliang-ms đang làm issue này rồi.
Từ ngày 24/8/2024.
- Ngôn ngữ chính
- TypeScript
- Star
- 19
- Fork
- 6
- Merge trung bình
- 2 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 4
Mô tả
Currently, we have main and module in the package.json which specify the entry point for cjs and esm. ref
exports is supported by Node.js 12+ ref
Note that exports will take precedence over the main field: https://nodejs.org/api/packages.html#main
The exports field can produce extra extensibility, for example, tools like webpack will know some specific fields. ref
BTW, this is how azure sdk does: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-auth/package.json
I prefer to follow azure sdk.
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.
Đánh giá
Issue này chưa được đánh giá.