okikio / bundlejs

An online tool to quickly bundle & minify your projects, while viewing the compressed gzip/brotli bundle size, all running locally on your browser.
https://bundlejs.com
MIT License
751 stars 13 forks source link

Error when downloading packages #42

Closed fabian-hiller closed 1 year ago

fabian-hiller commented 1 year ago

bundlejs is exactly what I was looking for to show the benefits of my modular library. However, after I click on "build" an error occurs.

https://bundlejs.com/?q=%40modular-forms%2Fsolid&treeshake=%5B%7B+createForm%2CForm%2CField+%7D%5D

okikio commented 1 year ago

Sorry for the late response. You can use skypack.dev instead of unpkg.com https://bundlejs.com/?q=skypack%3A%40modular-forms%2Fsolid&treeshake=%5B%7B+createForm%2CForm%2CField+%7D%5D

I've noticed an issue with bundlejs.com when using unpkg.com for solidjs, I'll investigate and try to fix it

fabian-hiller commented 1 year ago

Thank you! Now it works. Is there any way that bundlejs will also show the minified and gzipped version? Currently it is not minified or?

fabian-hiller commented 1 year ago

I think I made a mistake in my previous message. I thought bundlejs only shows me the bundle size of Modular Forms. After looking at it a bit closer, I assume that all dependencies are also included in the size specification. In this case everything is correct. Thanks for your work!

Maybe a graphical analysis in the style of the bundlejs website would be a cool feature for the future to be able to analyze the individual components even easier.

okikio commented 1 year ago

bundlejs, can actually already do some bundle analysis and I'm working on improving it the bundle analysis this year https://bundlejs.com/?q=skypack%3A%40modular-forms%2Fsolid&treeshake=%5B%7B+createForm%2CForm%2CField+%7D%5D&config=%7B%22analysis%22%3Atrue%7D#analysis

fabian-hiller commented 1 year ago

Great. I find the UI of analysis built in so far not optimal. It cuts off the information on my package when hovering and the size information does not match the information above from bundlejs or am I missing something here? It shows 8 KB at the top and 27 KB in the analysis.

okikio commented 1 year ago

Yeah, I'm working on a new one based off of esbuilds bundle analyzer, it still does need work but at the very least it provides a good understanding of how your package scales in comparison to other packages