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
787 stars 14 forks source link

Not bundling - only a loading spinner #9

Closed markerikson closed 3 years ago

markerikson commented 3 years ago

Hiya. First off, love this tool! Way better than Bundlephobia for actual meaningful results (although I do like Bundlephobia's "size over time" charts).

I last used Bundle a few days ago and it worked fine. Just tried to load it up, got a message that there was an update available, and clicked OK.

Now, it refuses to actually bundle anything, and all I get is a loading spinner:

image

Unfortunately there doesn't appear to be any error in the console, either.

Tried this with both import { createSelector } from 'reselect' and import { createStore } from 'redux'.

Hopefully that at least gives you something to go on!

okikio commented 3 years ago

This is an issue with skypack.dev, it seems that they are having issues, so, for now switch to esm.sh.

All you need to do, to switch is this,

export { createStore } from 'esm:redux';

Or you can just use the esm.sh url,

export { createStore } from 'https://cdn.esm.sh/redux';

If that doesn't work you can use unpkg,

export { createStore } from 'unpkg:redux';

It should work though,

image

You can also read the usage docs right under the code editors for more CDN's you can try,

image

markerikson commented 3 years ago

Gotcha, thanks! ESM isn't working for me either for some reason, but Unpkg does.

Also, I checked and confirmed that you can do specific package versions, and it works!

import { createSelector } from 'unpkg:reselect';

// vs

import { createSelector } from 'unpkg:reselect@4.1.0-beta.1';

Thanks again for the great tool!