Skip to content

Deno compile tries to resolve wasm imports for explicitly instantiated modules #31456

@CertainLach

Description

@CertainLach

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: ...
  })

Metadata

Metadata

Assignees

No one assigned

    Labels

    compilerelated to the `deno compile` featureresolutionIssues related to module resolution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions