Add option to embedd Wasm module
matklad opened this issue · 1 comments
matklad commented
At the moment, the Wasm module for lua vm needs to be fetched from the internet. This works nicely in the browser (just another package to fetch), but for server side it would be beneficial if the library was self-contained.
as far as I understand, the best way to do that would be to embedd a base64 encoded module as a sting in source file. That’s, for example, how deno implements deno-dom:
ceifa commented
It doesn't fetch from the internet on server side, the wasm module is exported as a separated file inside the package