Skip to content

Commit

Permalink
chore: fiddling with a conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Jun 5, 2024
1 parent 0eb34a5 commit 593af4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/compartment-mapper/src/import-hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,9 @@ export function makeImportNowHookMaker(
if ('packages' in policy && typeof policy.packages === 'object') {
for (const [pkgName, policyItem] of entries(policy.packages)) {
if (
policyItem === true ||
(policyItem === DYNAMIC_POLICY_VALUE &&
!(pkgName in compartmentDescriptor.modules))
!(pkgName in compartmentDescriptor.modules) &&
pkgName in compartmentDescriptor.scopes &&
policyItem
) {
compartmentDescriptor.modules[pkgName] =
compartmentDescriptor.scopes[pkgName];
Expand Down

0 comments on commit 593af4e

Please sign in to comment.