Skip to content

Commit

Permalink
fix(compartment-mapper): Take only first matching tag of package exports
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed May 8, 2024
1 parent 1bcc769 commit 1ba04e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/compartment-mapper/src/infer-exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ function* interpretExports(name, exports, tags) {
}
} else if (tags.has(key)) {
yield* interpretExports(name, value, tags);
// Take only the first matching tag.
return;
}
}
}
Expand Down

0 comments on commit 1ba04e9

Please sign in to comment.