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

Strange behavior when using multiplug badges #54

Closed MellKam closed 1 year ago

MellKam commented 1 year ago

Here is an example of the part of my readme where I tried to compare the sizes of packages

Package Base API Minified size Minified and gzipped size
yumi-fetch fetch
wretch fetch
ky fetch
axios XMLHttpRequest
got XMLHttpRequest

image

At first it was working fine, but now it sticks and shows the previous size. Maybe it is cache issue or something else. I've tried opening it from different devices and it work the same way

okikio commented 1 year ago

Yeah, that was a caching issue, it would've resolved itself in about a day, but I've manually cleared the cache so the issue should now be resolved, let me know what you think

MellKam commented 1 year ago

Now some of them are correct, but still some are jumbled up in a random order. image

I've had this problem for more than a day. At first I also thought it would go away on its own, but it wasn't. So I decided to write the issue.

okikio commented 1 year ago

I think for some reason it's strongly caching the badges, I'll have to look into that. Thus far I've cleared all the badges so it should now work, please open the table above in an incognito window to confirm. I'll work on a permanent fix for it's strongly held cache. It also seems to be using the cache for other bundles when bundling packages back to back, I need to definitely look into that

MellKam commented 1 year ago

Okay, thanks for response

Still doesn't work, even in the incognito window. Although, now they are in a different order 😆 image

okikio commented 1 year ago

It is a caching issue but it's specific to badges not the JSON response and I can't replicate it anymore, but it definitely does occur, I'll look further into this tmrw

okikio commented 1 year ago

Wait, nvm I've now created a fix, give it a try

MellKam commented 1 year ago

Yes, it's working well now. And it looks like I had some kind of error with the axios treeshake export. Thanks!