pastelsky/bundlephobia

Allow to link a specific exported module

開放

#389 建立於 2020年8月18日

 (2 則留言) (1 個反應) (0 位負責人)JavaScript (250 個分叉)batch import
Improvementgood first issue

倉庫指標

星標
 (8,477 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Please describe the problem

In the documentation of Material-UI, we have a number of small modules exported from a large package (for convinience), for instance: https://material-ui.com/components/textarea-autosize/. We link our own bundle size report so developers can have an idea of the bundle size cost (and hopefully feel safe adding the dependency). However, I think that developers would have more trust in a third-party source, somebody that doesn't have conflicting incentives (as long as the data is accurate enough).

Describe the solution you'd like

We would like to link a specific exported module with BundlePhobia.

Describe any alternatives you've considered

We have tried text fragment but it's not reliable enough: https://github.com/mui-org/material-ui/pull/22210#discussion_r471125634

貢獻者指南