Follow dev logic for inline loader - keep array of exposed modules internally.
Globally expose modules and exposedModules to be accessible for loaded scripts, but do this only after they are populated.