diff --git a/web/src/wasm/gomark.wasm b/web/src/assets/gomark.wasm similarity index 99% rename from web/src/wasm/gomark.wasm rename to web/src/assets/gomark.wasm index 90a479f0..6d6ea002 100755 Binary files a/web/src/wasm/gomark.wasm and b/web/src/assets/gomark.wasm differ diff --git a/web/src/wasm/wasm_exec.js b/web/src/assets/wasm_exec.js similarity index 100% rename from web/src/wasm/wasm_exec.js rename to web/src/assets/wasm_exec.js diff --git a/web/src/main.tsx b/web/src/main.tsx index d0980f84..abad1e07 100644 --- a/web/src/main.tsx +++ b/web/src/main.tsx @@ -11,12 +11,12 @@ import "./less/highlight.less"; import router from "./router"; import store from "./store"; import theme from "./theme"; -import wasmUrl from "./wasm/gomark.wasm?url"; -import "./wasm/wasm_exec.js"; +import gomarkWasm from "./assets/gomark.wasm?url"; +import "./assets/wasm_exec.js"; (async () => { const go = new window.Go(); - const responsePromise = fetch(wasmUrl); + const responsePromise = fetch(gomarkWasm); const { instance } = await WebAssembly.instantiateStreaming(responsePromise, go.importObject); go.run(instance);