Skip to content

Commit

Permalink
fix(compartment-mapper): Import main as .
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Sep 26, 2023
1 parent 33bc44b commit 19dc5bc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/compartment-mapper/src/import-hook.js
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 19dc5bc

Please sign in to comment.