emberjs / emberjs/ember-inspector

[feature] be able to search and identify loaded modules

Open
#1,384 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
969
Forks
292
PR merge metrics
No merged PRs in 30d

Description

**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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.