module graph

The map of which files and packages import which, starting from your entry files.

In more detail

Each node is a file or package and each arrow an import. Bundlers walk it to build client bundles, and file tracing walks it to decide which files a deployment needs.

Example

Next.js output file tracing follows the module graph to fill the standalone folder.

Related terms

Taught in

References