pastelsky/bundlephobia

Allow to link a specific exported module

Open

#389 opened on Aug 18, 2020

View on GitHub
 (2 comments) (1 reaction) (0 assignees)JavaScript (8,477 stars) (250 forks)batch import
Improvementgood first issue

Description

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

Contributor guide