@tramvai/module-deps-graph
v6.79.24
Published
> Works only in development mode and shows dependency graph for the server build
Readme
DepsGraphModule
Works only in development mode and shows dependency graph for the server build
Module to show token dependency graph.
Installation
First install @tramvai/module-deps-graph:
npm i @tramvai/module-deps-graphAdd module to the modules list
import { createApp } from '@tramvai/core';
import { DepsGraphModule } from '@tramvai/module-deps-graph';
createApp({
modules: [DepsGraphModule],
});Explanation
Usage
Module adds papi-route /deps-graph that will display dependency graph with the functionality to search by token or module name.
Actual relative path to the papi-route will be
/:appName/papi/deps-graphwhereappName- name of the app passed to thecreateApp
Graph legend
- Blue - usual provider
- Yellow - multi-provider
- Red - provider satisfying to search expression

