http://esm.ext.archivep75mbjunhxc6x4j5mwjmomyxb573v42baldlqu56ruil2oiad.onion
worker query. Plus, you can access the module's exports in the inject
code. For example, use the xxhash-wasm to hash strings in a worker: import createWorker from "https://esm.sh/
[email protected]?worker" ; // variable '$module' is the imported 'xxhash-wasm' module const inject = `
const { default: xxhash } = $module
self.onmessage = async (e) => {
const hasher = await xxhash()
self.postMessage(hasher.h64ToString(e.data))
}
` ; const worker = createWorker ({ inject });
worker....