lib/processImports.js
function circularImportsError(fileBeingImported, importTrail) {
  const message =
    `Circular import of "${fileBeingImported}".\r\n` +
    'Import trace:\r\n' +
    importTrail.map(f => ` -> ${f}`).join('\r\n')
  return new Error(message)
}
function circularImportsError(fileBeingImported, importTrail) {
  const message =
    `Circular import of "${fileBeingImported}".\r\n` +
    'Import trace:\r\n' +
    importTrail.map(f => ` -> ${f}`).join('\r\n')
  return new Error(message)
}
function circularImportsError ( fileBeingImported , importTrail ) { const message = ` ${ fileBeingImported } \r \n ` + 'Import trace:\r\n' + importTrail . map ( f => ` ${ f } ` ) . join ( '\r\n' ) return new Error ( message ) }
Constructs a circular imports error.

@param  {string} fileBeingImported
The file being imported.

@param  {string} importingFile
The file that imported.

@return {Error}
An error.
Constructs a circular imports error .