We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6cbab6 commit 4506658Copy full SHA for 4506658
.gitignore
@@ -21,3 +21,5 @@ dist-ssr
21
*.njsproj
22
*.sln
23
*.sw?
24
+
25
+public/wa.wasm.zip
src/lib/wawasm.ts
@@ -10,7 +10,10 @@ type TWasmInst = WebAssembly.Instance & {
10
}
11
12
const zip = new JSZip()
13
-const WASM_ZIP_URL = '/wa.wasm.zip'
+const isDEV = import.meta.env.DEV || import.meta.env.MODE === 'development'
14
+const WASM_ZIP_URL = isDEV
15
+ ? './wa.wasm.zip'
16
+ : 'https://wa-lang.org/wa/wa-js/wa.wasm.zip'
17
18
export async function initWaWasm() {
19
const { wasmInst, go, actions } = useWasmStore.getState()
0 commit comments