Skip to content

Commit

Permalink
fix: allow circular deps
Browse files Browse the repository at this point in the history
  • Loading branch information
reggi committed Dec 12, 2024
1 parent 99c36a5 commit 0833c91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugins/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,10 @@ export abstract class WorkspacePlugin<T> 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) {
Expand Down

0 comments on commit 0833c91

Please sign in to comment.