build(wasm): do not inline wasm blob

oops lol totally missed this
This commit is contained in:
alina 🌸 2024-09-24 23:50:20 +03:00
parent 9cd0bc0290
commit e7d61d08cd
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -8,7 +8,7 @@ export function getWasmUrl(): URL {
// making it not work. probably related to https://github.com/vitejs/vite/issues/8427, // making it not work. probably related to https://github.com/vitejs/vite/issues/8427,
// but asking the user to deoptimize the entire @mtcute/web is definitely not a good idea // but asking the user to deoptimize the entire @mtcute/web is definitely not a good idea
// so we'll just use this hack for now // so we'll just use this hack for now
return new URL('./mtcute.wasm', import.meta.url) return new URL(/* @vite-ignore */ './mtcute.wasm', import.meta.url)
} }
let wasm!: MtcuteWasmModule let wasm!: MtcuteWasmModule