Saturday 20 October 2018

Is there an NPM package that can map ES module dependencies?

I have a Node.js codebase that uses ES modules.I want to be able to see what files include a specific file, e.g./foo.js import './bar.js'; /bar.js // I want to know which files in the project depend on this file. In the above example, if the subject file is bar.js, I want to know that /foo.js is depending on this file.I am assuming that ES modules permit static dependency inspection. Therefore, it should be possible to map all relationship between files.

Submitted October 20, 2018 at 07:42PM by gajus0

No comments:

Post a Comment