{mach,sysjs}: put WASM imports into their own namespaces (#537)
This commit is contained in:
parent
eef76effe3
commit
47d1544b64
4 changed files with 87 additions and 86 deletions
|
|
@ -9,13 +9,14 @@
|
|||
<body>
|
||||
<script type="module">
|
||||
import { mach } from "./mach.js";
|
||||
import { zig } from "./mach-sysjs.js";
|
||||
import { sysjs } from "./mach-sysjs.js";
|
||||
import setupWasmserve from "./wasmserve.js";
|
||||
|
||||
setupWasmserve();
|
||||
|
||||
let imports = {
|
||||
env: { ...mach, ...zig },
|
||||
mach,
|
||||
sysjs,
|
||||
};
|
||||
|
||||
fetch("{ app_name }.wasm")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue