Design Patterns · Senior · Question 60 of 75
Why does the Acyclic Dependencies Principle matter in a monorepo?
- ✓Correct answer: Cycles between packages prevent independent builds, releases and reasoning; the dependency graph must be a DAG
- 2Cycles are only a style issue
- 3Bundlers can't handle any imports
Explanation
Break cycles by extracting a shared module or inverting a dependency through an interface.