🕸️Dependency Graph
Also known as Module Graph, Import Graph, Dependency Tree
A map of which files or packages need which others. Arrows show the need.
Think of it like
It is like a chart of a tower. It shows which bricks hold up which.
Example
Jack draws his app's dependency graph. The auth and billing modules both import utils, so a bug there hits both.
Why it matters
It shows what to build first, what to test after a change, and which part is risky to touch.
Definition
Common mistake
Key takeaways
- 1Arrow means needs. This part imports that one.
- 2Hubs are risky. Many arrows in, much to break.
- 3Avoid loops. Two parts should not need each other.