ember-cli / ember-cli/babel-plugin-ember-modules-api-polyfill

Extending / Overriding Mappings

Đang mở
#133 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
15
Fork
19
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Currently only an `ignore` option is accepted, which allows to exempt certain imports from being rewritten, e.g. as used by https://github.com/babel/ember-cli-babel/blob/aa6b45cad241617279d24f96390f9ced3ff0e754/index.js#L610-L630.

It would be awesome, if we could expand this API to allow overriding / amending the standard mapping from `ember-rfc176-data`.

During the implementation of the [`ember-cached-decorator-polyfill`](https://github.com/ember-polyfills/ember-cached-decorator-polyfill), I had to do some crazy contortions (https://github.com/ember-polyfills/ember-cached-decorator-polyfill/pull/12) to add new entries to the mapping. It would be great, if we could improve the infrastructure for future polyfills here. 💕

I guess this will also require some changes to `ember-cli-babel`, but the more significant changes will happen here.

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

Hướng nghiên cứu

Bắt đầu bằng việc lần theo cách tùy chọn `ignore` hiện tại và ánh xạ tiêu chuẩn từ `ember-rfc176-data` được xử lý. Sau đó, kiểm tra việc tích hợp với `ember-cli-babel`; có thể xem là hoàn tất khi các bên gọi có thể ghi đè hoặc bổ sung các ánh xạ thông qua một API rõ ràng mà không cần những cách xử lý vòng vo được mô tả cho `ember-cached-decorator-polyfill`.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
babel, javascript
Lĩnh vực
tooling
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
30/100

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.