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 3e80797 commit 2a999f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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(
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 2a999f4

Please sign in to comment.