Closed sunzhuo closed 1 year ago
Wasmoon it's usable on browser by default, browserify it's not needed.
I am new to web development. Can you give me a simple example? I use a web worker import {LuaFactory} from './index.js';
. Is that correct? If I add this line, the worker can not respond to postmessage.
I figured it out. Use following two line in the web worker.
importScripts('./index.js'); const factory = new wasmoon.LuaFactory();
I use browerify to let index.js be usable in a browser, which results in an 866K file. It's quite large. Anything wrong?