I have a web project with over 60 es6 modules that use export
and import
. I am looking for a way to graph, or map out, the relationships between the modules. I am looking for circular dependencies and opportunities for code splitting and just visualizing the project in general.
I thought npm ls
would answer my question but it seems to list everything in node_modules/ (which I don't care about) and none of my own modules. I also looked at dependo. But neither got close to what I want (or else I don't understand how to use them).