ceifa / wasmoon

A real lua 5.4 VM with JS bindings made with webassembly
MIT License
495 stars 32 forks source link

Errors on version greater than 1.15.0 #108

Closed luyufxckyouall closed 9 months ago

luyufxckyouall commented 9 months ago

There are some problems when I use a version greater than 1.15.0. After I use "npm install wasmoon" and compile my project. It says like this :"Error: Parsing file E:.........\node_modules\wasmoon\dist\index.js: Unexpected token (1263:10)" and this :"SyntaxError: Unexpected token (145:14) while parsing E:/.../.../.../node_modules/wasmoon/dist/index.js".

Then I checked the source code,I found problems come from this function: initWasmModule. But, after I searched wasmoon project on github, I think this function doesn't have the source code of TypeScript. It only has compiled javascript code. That is only in "index.js'. So I don't know how to fix this problem. So can you give me some help?