         app.modules = {}
         globalPaths = module.constructor.globalPaths
         for moduleInfo in options.modules
-            if _.isString moduleInfo
+            if typeof moduleInfo == 'string'
                 moduleInfo = name: moduleInfo
-            app.modules[moduleInfo.name] = _.defaults moduleInfo,
+            defaults =
                 path:
                     if moduleInfo.name
                         resolve.sync moduleInfo.name,

path = require 'path'

_ = require 'lodash'
resolve = require 'resolve'
derby = require 'derby'

util = require './util'


        app.component require name

    for moduleInfo in options.modules
        if typeof moduleInfo == 'string'
            moduleInfo = name: moduleInfo
        moduleName = moduleInfo.name

        for k, v of app.modules[moduleName]
            moduleInfo[k] ?= v

        require moduleName if moduleInfo.index

        if moduleInfo.opts
            opts = require moduleName + '/opts'
            Object.assign opts, moduleInfo

        for name in moduleInfo.components
            compPath = path.join moduleInfo.path, 'components', name
