-
Notifications
You must be signed in to change notification settings - Fork 30.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CJS nextLoader callback in loader hook doesn't use changed URL #56376
Comments
Would you like to send a PR? |
Yes, I'll do, thanks |
awto
pushed a commit
to awto/node
that referenced
this issue
Dec 29, 2024
awto
added a commit
to awto/node
that referenced
this issue
Dec 29, 2024
awto
added a commit
to awto/node
that referenced
this issue
Jan 16, 2025
aduh95
pushed a commit
that referenced
this issue
Jan 27, 2025
Fixes: #56376 PR-URL: #56402 Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]>
aduh95
pushed a commit
that referenced
this issue
Jan 30, 2025
Fixes: #56376 PR-URL: #56402 Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
v23.5.0
Platform
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 originalurl
. 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
The text was updated successfully, but these errors were encountered: