js-compute-runtime icon indicating copy to clipboard operation
js-compute-runtime copied to clipboard

Load Wasm files in Javascript

Open rahul007-bit opened this issue 2 years ago • 1 comments

I was using the @hanazuki/node-jsonnet library but it wasn't working with Fastly because Fastly doesn't support the nodejs API, such as fs and utils. So, I created my own library in Rust by wrapping Google's Jsonnet. My library produces wasm that can be used in JavaScript. I tried it with Cloudflare's workerd and it worked. However, I'm having trouble with Fastly. Is there any way to use the wasm file that is produced from my library in Fastly?

rahul007-bit avatar Jan 26 '24 07:01 rahul007-bit

hi folks, related question - does fastly build allow for loading of wasm from inside javascript ? we have a few wasm modules that we used inside javascript.

sandys avatar Jan 29 '24 07:01 sandys