function compareImportAndExportPaths(exportPath, translatedImportPath) {
  return (
    exportPath === translatedImportPath ||
    exportPath === `${translatedImportPath}.js` ||
    exportPath === `${translatedImportPath}/index.js`
  );
}
Needed in case fromImportToExportPerspective does not have a
externalRootPath supplied.
@param {string} exportPath exportEntry.file
@param {PathRelativeFromProjectRoot} translatedImportPath result of fromImportToExportPerspective