chore: tweak assets folder

This commit is contained in:
Steven 2024-02-04 22:45:51 +08:00
parent d2603ee67b
commit 8773a3d2c1
3 changed files with 3 additions and 3 deletions

View file

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