in transforms/React-PropTypes-to-prop-types.js [36:50]
function findRequireAfterPropTypes(j, root) {
let target, targetName;
root
.find(j.CallExpression, { callee: { name: 'require' } })
.forEach(path => {
const name = path.node.arguments[0].value.toLowerCase();
if (name > MODULE_NAME && (!target || name < targetName)) {
targetName = name;
target = path;
}
});
return target;
}