Laytan 500c117312 Merge pull request #4008 from Daxode/wasm-quality-of-life пре 1 година
..
WebGL 3bfccde6f9 Fix: remove extra `usage` in webgl.odin:250 пре 1 година
js e7041f785a Quality of life changes to wgpu/wasm stuff пре 1 година
README.md 9e376fbda7 Update README.md пре 3 година

README.md

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 `vendor:wasm/js/runtime.js` into your web server -->
<script type="text/javascript" src="runtime.js"></script>
<script type="text/javascript">
	odin.runWasm(pathToWasm, consolePreElement);
</script>