Show import path from one module to chunk or another module
Clear and concise description of the problem
When optimizing the production build and determining why some modules appear in specific chunks, I would appreciate the ability to identify the import path. This feature would enable me to break, change, or refactor the codebase to enhance the output. Currently, I have to click through the import path manually to identify issues. In the Graph module, I would select one module as the starting point and another as the endpoint, which would display the entire import path between them. This would effectively solve many problems related to backtracking incorrect imports. When working on huge applications 10k+ modules, this would drastically improve UX.
Suggested solution
In Graph module, we would select starting and ending module. This would provide us with all possible import paths. We would have similar view as Graph, but only with the selected modules, instead of whole Graph that is hard to navigate with huge codebases.
Alternative
No response
Additional context
No response
Validations
- [x] Follow our Code of Conduct
- [x] Read the Contributing Guide.
- [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Is it similar to this? https://github.com/vuejs/devtools/pull/988
Yea, this looks similar to it, basically find path from A -> B.
https://github.com/statoscope/statoscope has something like this:
Thanks for the suggestions! I think it’s nice to have it, and I’ve been working on it.
Cool. Please let me know if you need any help!
@webfansplz thanks looks great