About
This page is about the dependency graph between module.
Build
The dependency graph is build from a single module (called the entry point)
- for a ESM module with the import statement
- for a commonJs module (node default) with the require statement
The dependency module files are found (resolved) by the resolver that try to find the file first:
- in the actual project
- then in the package dependency
Usage
Dependency graph are used in build operation that depends on it such as:
- tree-shaking - dead code elimination (tree is a short name for dependency tree (ie dependency graph)