DEV Community

Discussion on: Embedding emscripten in a Node.js library

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

Thank you once again for saving the day .. sort of, this rewire is a hacky thing and feels very wrong considering the glue code does include some if node then do this type stuff.
But for the life of me I can't seem to make a library unless I take this approach. I would love to see a script to remove all the browser bits from the glue code.

Collapse
 
nebrius profile image
Bryan Hughes

"But for the life of me I can't seem to make a library unless I take this approach." I think I said exactly the same thing at one point in time 😂

Yeah, this approach is really hacky, and I'm not particularly happy that I had to do it this way.