13 Replies
Can't you put the
.wasm
file on the /static
folder then load it on the frontend (better to be in an island)
Or do mean to bundle fresh into wasm?I was wondering if anyone had any examples of it working or resources for how to implement a
.wasm
file server sidewdym "implement a wasm file"
you don't write wasm directly
Hopeful to use Deno' first-class support of
.wasm
modules 🙂
.wat
--> .wasm
of courseuse the wat2wasm from the wasm toolkit
https://github.com/WebAssembly/wabt
Yes, I have that 🙂
what's the complication then?
I had some complications with the
Memory
object, but I'm hopeful maybe there are some resources or example repos of it being done 🙂You can either follow the deno integration or the node one (deno should be amble to import it)
don't ask to ask, just ask.
Also couldn't get the first-class imports working, and wondering if it's not yet ready for Fresh
what's the memory problem you have?
It was a
LinkError
but I've put it aside for now, when I get back to it I'll come back here with a log 🙂it's a deno feature, so if it didn't work properly and you found a bug, just make an issue on their gh
LinkError mostly means some file wasn't found (aka it couldn't link it)
are you trying to import something from js (or typescript, same thing)
if yes, I'll probably need some kind of info of how you're structuring your project