Is there any way to access all loaded modules of require.js?
Background: I want to automatically call an init() function of my javascript-modules af
init()
I'm lazy, so I just did this:
var modulesToLoad = Object.keys(require.s.contexts['_'].registry); require(modulesToLoad);
Based on other answers here.