fix(lib/plugins): resolve dependency graph before pushing nodes to ordered list
This commit is contained in:
parent
57e2fa89da
commit
a3ebccf1d6
1 changed files with 3 additions and 3 deletions
|
|
@ -23,12 +23,12 @@ export const pListOrdered: AnyPlugin[] = []
|
|||
export const pPending = new Set<AnyPlugin>()
|
||||
|
||||
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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue