Reduced feature (faster) alternative to the
npm install --save-dev @11ty/dependency-tree
- Ignores Node’s built-ins (e.g.
- Handles circular dependencies (Node does this too)
// my-file.js// if my-local-dependency.js has dependencies, it will include those tooconst test = ;// ignored, is a built-inconst path = ;
const DependencyTree = ;;// returns ["./my-local-dependency.js"]
const DependencyTree = ;; // throws an error;// returns