lib/processImports.js
function mapFiles(files, relative, required) {
  if (!files) {
    return []
  }

  if (Array.isArray(files) === false) {
    files = [files]
  }

  return files.map(f => ({
    file: resolvePath(relative, f),
    required: required
  }))
}
function mapFiles(files, relative, required) {
  if (!files) {
    return []
  }

  if (Array.isArray(files) === false) {
    files = [files]
  }

  return files.map(f => ({
    file: resolvePath(relative, f),
    required: required
  }))
}
function mapFiles ( files , relative , required ) { if ( ! files ) { return [ ] } if ( Array . isArray ( files ) === false ) { files = [ files ] } return files . map ( f => ( { file : resolvePath ( relative , f ) , required : required } ) ) }
Maps file paths as well as whether not they are required to descriptors.
Maps file paths as well as whether not they are required to descriptors .