How to write a glue js file for wasm?

I make a golang wasm file, I want to use it in my project.
The editor ask for a glue file to load the wasm.

What is the content of the glue file?

How to make it?

Hi @extrame and welcome,

Usually the glue.js file is being generated by the compiler/build library (e.g. emscripten), there are several tutorials online on how to generate the minimum one.

1 Like