Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] be able to search and identify loaded modules #1384

Open
gabrielcsapo opened this issue Oct 15, 2020 · 0 comments
Open

[feature] be able to search and identify loaded modules #1384

gabrielcsapo opened this issue Oct 15, 2020 · 0 comments

Comments

@gabrielcsapo
Copy link

Is your feature request related to a problem? Please describe.
Right now in order to see if modules are being loaded a common way to do this is to run

require.entries

in the chrome console. Finding specific modules would require doing something like

Object.keys(require.entries).filter((dep) => dep.indexOf('ember-truth-helpers') > -1);

Screen Shot 2020-10-15 at 1 04 34 PM

Describe the solution you'd like
It would be great if this was exposed as a part of the ember-inspector tools as a sidebar option to see "Modules". This would allow developer to search loaded modules and also to identify potentially;

  • when they were they loaded?
  • what code depends on them? (in memory dependency graph)

Screen Shot 2020-10-15 at 1 07 06 PM

Describe alternatives you've considered
Continue running this manually, it doesn't allow much granularity of what code loaded these modules or when but it works.

Additional context
Screenshots were provided in the sections above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant