I was using this package to offload some CPU intensive calculations and stop browsers from saying the tab had crashed, and it was all working absolutely fine when hosting the site locally on my machine.
However, upon publishing the site to production (hosted on GitHub Pages using gh-pages), the web-worker no longer runs, and instead throws this error:

I have no idea where to start on debugging this. I would've assumed that, because it worked perfectly locally, it would also work perfectly when published live.
Any thoughts? I can provide more info if you know what would be helpful.