DEV Community

Discussion on: Embedding emscripten in a Node.js library

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

Bryan, I just had a eureka moment and thought as thanks for keeping me going, I should share this.

If your still working in WASM, I have found the official way with no hacks, no env manually defined, just require the glue code and setup your c++ in the following way, I also have my lua repo which I could share as an example.

emscripten.org/docs/porting/connec...

Collapse
 
nebrius profile image
Bryan Hughes

Alas, I couldn't get embind (or ccall or cwrap) working in my case. I probably could have figured it out eventually, but I had deadlines 😉