I m running into issues trying to
I'm running into issues trying to consume a enscripten-built WASM npm package from a JS worker. are there any examples out there? i see a couple articles from 2018, but they don't seem accurate or focused enough
1 Reply
the challenge is that the npm package itself is invoking the WASM binary. the enscripten tooling seems to drop some incompatible loaders in there. First, it tries to pick up its own location from self.location.href, but even if i hardcode that one, it tries to perform a fetch for the binary which gets blocked with "Wasm code generation disallowed by embedder"
sadly, works locally (--local true on wrangler2)
any thoughts @krimby ?