From 0833c91c388362b8406e5e7057618c079c6ebbc1 Mon Sep 17 00:00:00 2001 From: Thomas Reggi Date: Thu, 12 Dec 2024 00:04:59 -0500 Subject: [PATCH] fix: allow circular deps --- src/plugins/workspace.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/workspace.ts b/src/plugins/workspace.ts index 2386377dc..d9799099f 100644 --- a/src/plugins/workspace.ts +++ b/src/plugins/workspace.ts @@ -447,9 +447,10 @@ export abstract class WorkspacePlugin extends ManifestPlugin { ) { this.logger.debug(`visiting ${name}, path: ${path}`); if (path.indexOf(name) !== -1) { - throw new Error( - `found cycle in dependency graph: ${path.join(' -> ')} -> ${name}` + this.logger.warn( + `found cycle in dependency graph: ${path.join(' -> ')} -> ${name}` ); + return; } const node = graph.get(name); if (!node) {