Closed
Description
Version
v23.5.0
Platform
Darwin MBP 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:04 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6020 arm64
Subsystem
loader
What steps will reproduce the bug?
I believe there is a typo at node/lib/internal/modules/cjs
/loader.js:1147.
It doesn't use urlFromHook
but only the original url
. So, the hook cannot change the URL for the next stage in the chain.
How often does it reproduce? Is there a required condition?
always
What is the expected behavior? Why is that the expected behavior?
Since there is a parameter for passing URL to nextLoad
it should be used.
What do you see instead?
The parameter passed to nextLoad
is ignored.
Additional information
No response
Metadata
Metadata
Assignees
Labels
No labels