developit / developit/microbundle

Reevaluate exports: 'auto'

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

Mô tả

It's just a request to evaluate if exports: 'auto' is still today the best solution. I understand its nice to use `require('lib')` instead of `require('lib').default`, but imho the BIG problem with having this auto mode **by default** is that whenever a user adds a named export from his/her library it is automatically a **breaking change** and one that might easily slip released as patch/minor because its really simple to miss that.

I'll make piece with either decision, just wanted to raise a concern about this.

I've filled this issue at rollup - https://github.com/rollup/rollup/issues/1881 , but whatever they decide does not have to be the same for microbundle, hence "duplicated" issues.

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

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