Get a list of all declared modules (SystemJS)

I am using jspm and SystemJS to import ES2015 modules.

Is it possible to get a list of all imported modules in a project through a System object or elsewhere? I can access my project-related modules through System._loader.moduleRecords , but the modules I installed through jspm (e.g. d3 , jquery ) do not appear in this list.

System._loader.modules contains a list of all the modules, but, unfortunately, also includes a list of modules needed to transfer my code and package loading modules.

System._loader.moduleRecords (project modules) enter image description here

System._loader.modules (project modules, libraries, forwarding packages) enter image description here

I only need a list of declared imports, in particular those that I imported using import x from 'x' . . This should include both project modules and libraries, but not related to babel / module loading modules. I would like the solution to not include filtering using regular expressions.

+6
source share
1 answer

SystemJS Debugger is probably what you are looking for.

0
source

All Articles