resolve.js
function isRequiresEarlyResolve(rules) {
  for (let i = 0; i < rules.length; ++i) {
    if (
      Object.prototype.hasOwnProperty.call(rules[i], 'module') ||
      (Object.prototype.hasOwnProperty.call(rules[i], 'append') && rules[i].append)
    ) {
      return true;
    }
  }
  return false;
}
function isRequiresEarlyResolve(rules) {
  for (let i = 0; i < rules.length; ++i) {
    if (
      Object.prototype.hasOwnProperty.call(rules[i], 'module') ||
      (Object.prototype.hasOwnProperty.call(rules[i], 'append') && rules[i].append)
    ) {
      return true;
    }
  }
  return false;
}
function isRequiresEarlyResolve ( rules ) { for ( let i = 0 ; i < rules . length ; ++ i ) { if ( Object . prototype . hasOwnProperty . call ( rules [ i ] , 'module' ) || ( Object . prototype . hasOwnProperty . call ( rules [ i ] , 'append' ) && rules [ i ] . append ) ) { return true ; } } return false ; }
Search module in rules existing
Search module in rules existing