Skip to content

Commit

Permalink
fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Jun 5, 2024
1 parent 2d31405 commit b70ad2a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/commonjs/src/resolve-require-sources.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ export function getRequireResolver(extensions, detectCyclesAndConditional, curre
)) !== IS_WRAPPED_COMMONJS
);
}
return (await getTypeForImportedModule(resolved, this.load.bind(this))) === IS_WRAPPED_COMMONJS;
return (
(await getTypeForImportedModule(resolved, this.load.bind(this))) ===
IS_WRAPPED_COMMONJS
);
})
)
).some((shouldTransform) => shouldTransform);
Expand Down Expand Up @@ -182,7 +185,12 @@ export function getRequireResolver(extensions, detectCyclesAndConditional, curre
return { id: wrapId(childId, EXTERNAL_SUFFIX), allowProxy: false };
}
parentMeta.requires.push({ resolved, isConditional });
await analyzeRequiredModule(parentId, resolved, isConditional, rollupContext.load.bind(this));
await analyzeRequiredModule(
parentId,
resolved,
isConditional,
rollupContext.load.bind(this)
);
return { id: childId, allowProxy: true };
})
);
Expand Down

0 comments on commit b70ad2a

Please sign in to comment.