Open ashtonmeuser opened 1 year ago
Can you provide a design for the option exposes the Wasm C API?
In https://github.com/ashtonmeuser/godot-wasm/blob/master/config.py I would return False if the platform is web for now.
Can you provide a design for the option exposes the Wasm C API?
I'll play around with this to see how feasible it is and update this issue. In short, we'd need to override parts of the Wasmer implementation of the Wasm C API to be a bridge to JS. Wasmer cannot be compiled to Wasm but that's okay because there is obviously already a Wasm runtime exposed to web exports that is accessible by JS.
In https://github.com/ashtonmeuser/godot-wasm/blob/master/config.py I would return False if the platform is web for now.
Done. Only supporting Linux, macOS, and Windows.
Just allowing Godot Wasm to be used as a module is not enough to export for web/HTML5. This is because Wasmer (the Wasm runtime used by this project) is not able to be comiled to Wasm by Emscripten which is what is happening internally when compiling the web/HTML5 Godot export templates. The following error is presented.
I see a few solutions to this but none that are a simple addition to this project.