microsoft / microsoft/FeatureManagement-JavaScript

Include conditional exports in package.json

Đang mở
#31 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.