Utility for obtaining the dependency graph from ES6 modules