Version: Deno 2.5.6
Trying to compile a workspace with wasm files, encountering the error:
error: Import "dom" not a dependency and not in import map from "file:///......../_fresh/59458a871d2aa5b4360d.wasm"
Wasm imports should not be resolved in any way here, as they are always passed explicitly in WebAssembly.instantiate:
WebAssembly.instantiateStreaming(fetch(new URL("wasmFile.wasm", import.meta.url)), {
dom: ...
})