mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Fix loader to look at index files
This commit is contained in:
parent
84c684155b
commit
bf8b55bfb5
@ -105,7 +105,13 @@ var define, requireModule, require, requirejs;
|
||||
}
|
||||
|
||||
function requireFrom(name, origin) {
|
||||
|
||||
if (!registry[name]) {
|
||||
name = name + '/index';
|
||||
}
|
||||
|
||||
var mod = registry[name];
|
||||
|
||||
if (!mod) {
|
||||
throw new Error('Could not find module `' + name + '` imported from `' + origin + '`');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user