You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
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:
like:
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.
The text was updated successfully, but these errors were encountered: