pastelsky/bundlephobia

Allow to link a specific exported module

Open

#389 ouverte le 18 août 2020

Voir sur GitHub
 (2 commentaires) (1 réaction) (0 assignés)JavaScript (250 forks)batch import
Improvementgood first issue

Métriques du dépôt

Stars
 (8 477 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur