-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Investigate package size (consider sideEffect
)
#124
Comments
Spent a little bit of time trying to look into the install and bundle size of Svelte UX and it's dependencies (with bundle being the most important). Using pkg-size.dev provides some useful insights: Shows the total install size as 149MB, with 109MB attributable to Using bundlephobia.com show the bundle as Using packagephobia.com, it doesn't provide much insight other than bundle size of When I tried to use bundlejs.com, it didn't provide much useful information, but probably because I don't fully understand how to use it, especially with Svelte. Using npm.anvaka.com it helps to show the dependency tree as a graph, with most of the dependencies comes as the result of While there isn't strong evidence from the above, I think the following could be helpful..
|
Consider installing https://github.com/btd/rollup-plugin-visualizer (although based on PRs for Rollup v4, it doesn't look actively maintained at the moment). |
It would be useful to make sure our bundle size is as small as possible, and we are leveraging tree shaking as well.
It would be great to track our bundle size over time (with actual usage, not just full NPM size).
We might want to investigate the
sideEffect
NPM config. I remember this being looked at for d3 and three.js years ago. Also wasn't sure if it's only useful for webpack (and still applicable for rollup/vite)The text was updated successfully, but these errors were encountered: