Feature summary (what you would like to be able to do and where):
Currently we require all JavaScript on page load to declare itself however currently there is a loophole which is that you can pull in libraries as dependencies.
Since there are some expensive libraries we want to avoid loading on page load - such as Codex and OOUI I think it's important we also check dependencies. This will help guide developers better so they use best practices on https://wikitech.wikimedia.org/wiki/MediaWiki_Engineering/Guides/Frontend_performance_practices
Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
- We'll check module dependencies as well as the modules directly added to page
Benefits (why should this be implemented?):
- Less chance of performance issues due to accidental adds of OOUI / Codex.