You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cat 'console.log("hooks executing")' > hooks.mjs
node --loader ./hooks.mjs
# At the REPL prompt:
> import("http://example.com/foo")
The message "hooks executing" is never written to stdout, indicating that hooks.mjs is never executed, even though the ESM resolve hook should be invoked to handle our import() call.
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
When launching the node REPL with --loader flag, the loader hooks are executed.