src/import.js
function _canImport(fileName, callingFileName, options) {
  if (callingFileName && (fileName === callingFileName)) return false;
  let _fileName = _getFileTests(fileName, options);
  if (options.includes) return (intersection(options.includes, _fileName).length > 0);
  if (options.excludes) return (intersection(options.includes, _fileName).length === 0);
  return true;
}
function _canImport(fileName, callingFileName, options) {
  if (callingFileName && (fileName === callingFileName)) return false;
  let _fileName = _getFileTests(fileName, options);
  if (options.includes) return (intersection(options.includes, _fileName).length > 0);
  if (options.excludes) return (intersection(options.includes, _fileName).length === 0);
  return true;
}
function _canImport ( fileName , callingFileName , options ) { if ( callingFileName && ( fileName === callingFileName ) ) return false ; let _fileName = _getFileTests ( fileName , options ) ; if ( options . includes ) return ( intersection ( options . includes , _fileName ) . length > 0 ) ; if ( options . excludes ) return ( intersection ( options . includes , _fileName ) . length === 0 ) ; return true ; }
Can a filename be imported according to the rules the supplied options.

@private
@param {string} fileName         Filename to test.
@param {string} callingFileName  Calling filename (file doing the import).
@param {Object} options          Import/Export options.
@returns {boolean}
Can a filename be imported according to the rules the supplied options .