deno_graph icon indicating copy to clipboard operation
deno_graph copied to clipboard

WASM dependency analysis

Open lucacasonato opened this issue 3 years ago • 1 comments

To unblock https://github.com/denoland/deno/issues/2552, deno_graph needs to be able to represent WASM modules in a module graph. To do this, we need to parse out the import sections in a module, because with the ESM-WASM integration, these can reference other JS / WASM modules (and thus they need to be part of the module graph).

To do the analysis of the WASM modules we can probably use wasmparser. It is a streaming parser, so we don't waste compute cycles and memory getting an entire WASM AST just to extract the imports.

lucacasonato avatar Apr 27 '22 20:04 lucacasonato

With https://github.com/denoland/deno_graph/pull/357 landing, what's the status of this?

lino-levan avatar Feb 12 '24 23:02 lino-levan