diff --git a/lib/plugins/src/_internal/dependency-graph.ts b/lib/plugins/src/_internal/dependency-graph.ts index dd64d5f..cefaef1 100644 --- a/lib/plugins/src/_internal/dependency-graph.ts +++ b/lib/plugins/src/_internal/dependency-graph.ts @@ -23,12 +23,12 @@ export const pListOrdered: AnyPlugin[] = [] export const pPending = new Set() export function computePendingNodes() { - for (const plugin of pLeafOrSingleNodes) pListOrdered.unshift(plugin) - pLeafOrSingleNodes.clear() - for (const plugin of pPending) resolvePluginGraph(plugin) pPending.clear() + for (const plugin of pLeafOrSingleNodes) pListOrdered.unshift(plugin) + pLeafOrSingleNodes.clear() + const stack = [...pRootNodes] pRootNodes.clear()