We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 295b564 commit c25701bCopy full SHA for c25701b
lib/reducePlan.js
@@ -74,7 +74,7 @@ module.exports = (plan, limit) => {
74
let bestNode = undefined;
75
let bestCost = Infinity;
76
for (const node of treeMap.values()) {
77
- if (node.entries <= 1 || !node.children) continue;
+ if (node.entries <= 1 || !node.children || !node.parent) continue;
78
if (node.children.length === 0) continue;
79
if (node.children.length === 1 && !node.value) continue;
80
// Try to select the node with has just a bit more entries than we need to reduce
0 commit comments