Files
Odin/core/sys/wasm
Laytan 7cfaf0b181 Merge pull request #4415 from p2jason/master
Remove the event queue from odin.js and directly invoke callbacks so they are executed in context where prevent default is possible
2024-11-01 19:48:36 +01:00
..

WASM on the Web

This directory is for use when targeting the js_wasm32 target and the packages that rely on it.

The js_wasm32 target assumes that the WASM output will be ran within a web browser rather than a standalone VM. In the VM cases, either wasi_wasm32 or freestanding_wasm32 should be used accordingly.

Example for js_wasm32

<!-- Copy `core:sys/wasm/js/odin.js` into your web server -->
<script type="text/javascript" src="odin.js"></script>
<script type="text/javascript">
	odin.runWasm(pathToWasm, consolePreElement);
</script>