{mach,sysjs}: put WASM imports into their own namespaces (#537)

This commit is contained in:
LeRoyce Pearson 2022-09-16 17:56:22 -06:00 committed by GitHub
parent eef76effe3
commit 47d1544b64
Failed to generate hash of commit
4 changed files with 87 additions and 86 deletions

View file

@ -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")