Remove official Worker support as it can complicate the actual worker build
Previously when this library was imported by software created for
SharedWorker / Worker usage, imports were not properly resolved by usage
of self.location.href instead of import.meta.url (which is not supported
in Workers context). In result, bundlers did not properly detect the
WASM dependency path.
Now if you want to use @hiveio/beekeeper in Workers, you should bundle
it to include WASM dependency / rewrite the path using the supported
`new URL('...', import.meta.url)` syntax and replace `import.meta.url`
with `self.location.href` using supported plugin in final build, e.g.
[`@rollup/plugin-replace`](https://www.npmjs.com/package/@rollup/plugin-replace)
Loading
Please sign in to comment