devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Show import path from one module to chunk or another module

Open huv1k opened this issue 1 year ago • 5 comments

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.

huv1k avatar Nov 24 '25 21:11 huv1k

Is it similar to this? https://github.com/vuejs/devtools/pull/988

LittleSound avatar Nov 26 '25 08:11 LittleSound

Yea, this looks similar to it, basically find path from A -> B.

https://github.com/statoscope/statoscope has something like this:Image

huv1k avatar Nov 26 '25 08:11 huv1k

Thanks for the suggestions! I think it’s nice to have it, and I’ve been working on it.

webfansplz avatar Nov 26 '25 14:11 webfansplz

Cool. Please let me know if you need any help!

LittleSound avatar Nov 28 '25 05:11 LittleSound

@webfansplz thanks looks great

huv1k avatar Dec 03 '25 08:12 huv1k