rollup-plugin-graph

2.0.0 • Public • Published

rollup-plugin-graph

Generates module dependencies graph, using the DOT language. To actually draw images, you will need the graphviz toolbox.

In your rollup.config.js:

let graph = require("rollup-plugin-graph");
let graphOptions = {prune: true};
 
module.exports = {
    /* ... */
    plugins: [ graph(graphOptions) ]
};

In your terminal:

rollup -c | dot -Tpng > graph.png

Options

  • prune (bool) Whether to prune the resulting graph, leaving only cyclic dependencies. This makes the graph strongly connected. Examples: pruned, not pruned
  • exclude (string or regexp) Specified the module ID pattern to be excluded from the graph.

Readme

Keywords

Package Sidebar

Install

npm i rollup-plugin-graph

Weekly Downloads

45

Version

2.0.0

License

ISC

Unpacked Size

2.87 kB

Total Files

3

Last publish

Collaborators

  • ondras