Open
Description
Currently, the WASM files are embedded as gzipped base64 strings in the module. However, this approach is not compatible with Cloudflare Workers runtime and causes errors when using Wrangler.
Cloudflare Workers only supports direct WASM imports. cloudflare/workers-sdk#1366
As a workaround, I've implemented a solution by:
- Dumping WASM from hardcoded values
- Adding a polyfill for loadWasm logic
While this works for basic WASM modules, it doesn't work properly for RSA implementations that depend on rsa_bg.js. I haven't found a solution for this besides using package patches.
Would it be possible to provide the raw WASM files instead of embedding them as gzipped base64 strings? This would improve compatibility with bundlers that support WASM directly.
Metadata
Metadata
Assignees
Labels
No labels