  as it does not contain package.json (#{err})"
   # TODO: test if `brunch-plugin` is in dep’s package.json.
   loadDeps = (deps, isDev) ->
+    requireModule = (depPath, dependencyName) ->
+      plugin = require depPath
+      plugin.brunchPluginName = dependencyName
+      plugin
     deps
       .filter (dependency) ->
         dependency isnt 'brunch' and dependency.indexOf('brunch') isnt -1

        return false unless plugin::?.extension in config.workers.extensions
      plugin::?.brunchPlugin and (not worker.isWorker or plugin::?.compile or plugin::?.lint)
    .map (plugin) ->
      new plugin config

loadPackages = (rootPath, callback) ->
  rootPath = sysPath.resolve rootPath

#
# Returns nothing.
initialize = (options, configParams, onCompile, callback) ->
  if options.config?
    logger.warn '`-c, --config` option is deprecated. Use `--env` and `config.overrides` instead'
  if options.optimize?
