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) {