src/bind.js
function reduce (m) {
  if (Array.isArray(m)) {
    try {
      const module = m[0].module ? m[0].module : m[0]
      _("register bind %o", module)
      return require(module)
    } catch (_) { return reduce(m.slice(1)) }
  } else return reduce([m])
}
function reduce (m) {
  if (Array.isArray(m)) {
    try {
      const module = m[0].module ? m[0].module : m[0]
      _("register bind %o", module)
      return require(module)
    } catch (_) { return reduce(m.slice(1)) }
  } else return reduce([m])
}
function reduce ( m ) { if ( Array . isArray ( m ) ) { try { const module = m [ 0 ] . module ? m [ 0 ] . module : m [ 0 ] _ ( "register bind %o" , module ) return require ( module ) } catch ( _ ) { return reduce ( m . slice ( 1 ) ) } } else return reduce ( [ m ] ) }
Try require each module until we don't error.
@param {String} module name
Try require each module until we don t error .