module: normalize package map paths - #66054
Merged
nodejs-github-bot merged 1 commit intoSep 25, 2026
Merged
Conversation
Collaborator
|
Review requested:
|
Contributor
|
Welcome to Node.js, and thank you for your first contribution! Before review, please take a moment to read:
Please make sure every commit is signed off. For a first pull request, GitHub Actions require collaborator approval and Jenkins CI must be started by a collaborator or triager, so an initial wait is normal. |
Signed-off-by: dansatch <dansatch98@gmail.com>
Dansatch
force-pushed
the
fix-package-map-directory-urls
branch
from
September 16, 2026 03:55
e21d359 to
40dc850
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #66054 +/- ##
==========================================
+ Coverage 90.25% 90.26% +0.01%
==========================================
Files 789 789
Lines 271424 271424
Branches 51799 51801 +2
==========================================
+ Hits 244964 244996 +32
+ Misses 16931 16913 -18
+ Partials 9529 9515 -14
🚀 New features to boost your workflow:
|
arcanis
approved these changes
Sep 18, 2026
aduh95
approved these changes
Sep 18, 2026
Collaborator
marco-ippolito
approved these changes
Sep 18, 2026
jasnell
approved these changes
Sep 21, 2026
Collaborator
Collaborator
Collaborator
Collaborator
Collaborator
|
Landed in 0551dee |
HoonDongKang
pushed a commit
to HoonDongKang/node
that referenced
this pull request
Sep 28, 2026
Signed-off-by: dansatch <dansatch98@gmail.com> PR-URL: nodejs#66054 Fixes: nodejs#66043 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Package-map URLs ending with a slash, including
".."and"./", are stored differently from the paths used during lookup. This causes valid dependencies to fail withERR_PACKAGE_MAP_EXTERNAL_FILE.This change normalizes package paths when the map is loaded. Tests cover CommonJS, ESM, parent-directory URLs, trailing slashes, and duplicate paths.
The bug was reproduced on Node.js v26.8.2.
Fixes: #66043