Manual:$wgResourceLoaderSources

Details
Extensions can register foreign module sources here. The default " " source for modules from the local wiki is set in this array. Instead that one is defined by ResourceLoader::__construct so that it cannot be unset or overwritten.

Example: