mirror of
https://github.com/syumai/workers.git
synced 2025-03-10 17:29:11 +00:00
updated worker.mjs and shim.mjs
This commit is contained in:
parent
a310604cc9
commit
dc5d872e1c
@ -1,9 +1,14 @@
|
||||
import "./polyfill_performance.js";
|
||||
import "./wasm_exec.js";
|
||||
import mod from "./app.wasm";
|
||||
|
||||
const go = new Go();
|
||||
|
||||
let mod;
|
||||
|
||||
export function init(m) {
|
||||
mod = m;
|
||||
}
|
||||
|
||||
async function run() {
|
||||
const readyPromise = new Promise((resolve) => {
|
||||
globalThis.ready = resolve;
|
||||
|
@ -1,3 +1,6 @@
|
||||
import * as imports from "./shim.mjs";
|
||||
import mod from "./app.wasm";
|
||||
|
||||
imports.init(mod);
|
||||
|
||||
export default { fetch: imports.fetch }
|
||||
|
Loading…
x
Reference in New Issue
Block a user