Hi buddy,
I think you can reference this tutorial, it shuold be useful for you:
From my understanding, it can be simplely explained for it:
jQuery.sap.registerModulePath("resource name","relative location")![]()
show below:
If the application needs a more flexible mapping between resource names and their location, use the following code:
#!js jQuery.sap.registerModulePath("my.example.component","example/component/");
After the registration, SAPUI5 knows multiple resources locations for different namespaces:
RESOURCE ROOT:{"":"../../../../resources/""example.component":"example/component""my.example.component":"example/component/"}