-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Show a table with sizes #11
Comments
Thanks for the request! I realize that the way you described this is how cost-of-modules works and the initial reason for this tool diffs slightly as seen in the readme I will think through this problem a little more and see if I can come up with something. 👍 |
You know the dependencies and their install sizes. It would be nice to list them in each package page. A pie chart would be excellent |
@mohsen1 Kind of 🤔 We know the dependencies and their publish sizes, not their install sizes (unless we run Package Phobia for each dependency which could be very very slow). This is because of the way npm flattens dependencies after an install which is why @siddharthkp created the Does that make sense? |
@siddharthkp @mohsen1 I have a PR in another project that might be what you're looking for: It would be great if you could give it a look through, thanks! 👍 |
I think just having the package size of each dependency would help a lot, and it's also what bundlephobia does for its graph: https://bundlephobia.com/result?p=@uppy/[email protected] Here at the bottom, Trying to estimate the install sizes of each package could be done in a single install by looking at the |
similar thoughts: #124 (comment) |
I tested this with @auth0/babel-preset-cosmos and got a scary result, but couldn't pin point why
By running cost-of-modules on my machine, I found it was because of one specific dependency: babel-plugin-transform-class-properties
Feel free to close this if it is out of scope.
The text was updated successfully, but these errors were encountered: