clean up older register patterns
This commit is contained in:
parent
bc1dd02dbc
commit
f2d53b288b
8 changed files with 19 additions and 25 deletions
|
|
@ -98,7 +98,8 @@ gapp.main = (app, deps, post, pre) => {
|
|||
// load mods after checking if dependency is present
|
||||
for (let mod of mods) {
|
||||
let { fn, name, deps } = mod;
|
||||
if (deps) {
|
||||
if (deps && deps.length) {
|
||||
dbug.warn({app, mod, deps});
|
||||
gapp.check(name, deps);
|
||||
}
|
||||
// mods with no name can't be depended on, but are allowed
|
||||
|
|
|
|||
Loading…
Reference in a new issue