Skip to content

Commit

Permalink
fix(compartment-mapper): Root alias search (merge #1791)
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Sep 26, 2023
2 parents 33bc44b + 19dc5bc commit 52aba31
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/compartment-mapper/src/import-hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,8 @@ export const makeImportHookMaker = (
// Collate candidate locations for the moduleSpecifier,
// to support Node.js conventions and similar.
const candidates = [moduleSpecifier];
if (moduleSpecifier !== '.') {
for (const candidateSuffix of searchSuffixes) {
candidates.push(`${moduleSpecifier}${candidateSuffix}`);
}
for (const candidateSuffix of searchSuffixes) {
candidates.push(`${moduleSpecifier}${candidateSuffix}`);
}

const { maybeRead } = unpackReadPowers(readPowers);
Expand Down

0 comments on commit 52aba31

Please sign in to comment.