deno
04f2e8f4 - fix(ext/node): pass import attributes to registerHooks load hook context

Commit
58 days ago
fix(ext/node): pass import attributes to registerHooks load hook context Pass `requested_module_type` from `ModuleLoadOptions` through `push_load` to the JS hook loop so that `context.importAttributes` is populated correctly for static imports with `with { type: "..." }` assertions. Previously `op_module_hooks_poll_load` only returned `[id, url]` and `_startEsmLoadLoop` always built `context.importAttributes` as an empty object, so hooks could not distinguish JSON/text/bytes imports.
Author
Parents
Loading