ajv-validator / ajv-validator/ajv

Distribute ajv with pure esm using Conditional Exports

Đang mở
#2,015 0 bình luận 13 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
TypeScript
Star
14.8k
Fork
1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**What version of Ajv you are you using?**
8.11.0

**What problem do you want to solve?**
Can not using Ajv as pure ESM package. It looks it is currently distributed as CommonJS module.

**What do you think is the correct solution to problem?**
According to the [nodejs documentation](https://nodejs.org/dist/latest-v16.x/docs/api/packages.html#conditional-exports):
>Conditional exports provide a way to map to different paths depending on certain conditions. They are supported for both CommonJS and ES module imports.

Maybe we can adopt this solution.

**Will you be able to implement it?**
Yes.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đá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.