From a3ebccf1d6ad70563bf538e1daa5cfdbe5fa31a0 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Mon, 21 Jul 2025 15:32:32 +0700 Subject: [PATCH] fix(lib/plugins): resolve dependency graph before pushing nodes to ordered list --- lib/plugins/src/_internal/dependency-graph.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()