obsidian-typst
obsidian-typst copied to clipboard
Fix compiler worker not fetching wasm binary correctly
See issue #59 for why this patch is needed.
Essentially, inside the web worker environment, the global 'Response' does not exist. As a result, wasm-bindgen's attempt to fetch the binary and parse the Response object does not work.
This patch sends the entire wasm binary through to WebAssembly.instantiate
.