ceifa / wasmoon

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

Errors on version greater than 1.15.0 #107

Closed luyufxckyouall closed 5 months ago

luyufxckyouall commented 5 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?