Commit 19590ff3 authored by Mateusz Tyszczak's avatar Mateusz Tyszczak 📜 Committed by Bartek Wrona
Browse files

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)
parent 1221b276
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment