Skip to content

Commit 758b71e

Browse files
committed
Correctly de-dup dependencies
We can't guarentee the pkg objects are `===`
1 parent e774c7b commit 758b71e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

broccoli/packages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ function glimmerTrees(packageNames) {
237237
let pkg;
238238

239239
while ((pkg = queue.pop()) !== undefined) {
240-
if (seen.has(pkg)) {
240+
if (seen.has(pkg.name)) {
241241
continue;
242242
}
243-
seen.add(pkg);
243+
seen.add(pkg.name);
244244

245245
if (!pkg.name.startsWith('@glimmer/') && !pkg.name.startsWith('@simple-dom/')) {
246246
continue;

0 commit comments

Comments
 (0)