.pnp.js
function getIssuerModule(parent) {
  let issuer = parent;

  while (issuer && (issuer.id === '[eval]' || issuer.id === '<repl>' || !issuer.filename)) {
    issuer = issuer.parent;
  }

  return issuer;
}
function getIssuerModule(parent) {
  let issuer = parent;

  while (issuer && (issuer.id === '[eval]' || issuer.id === '<repl>' || !issuer.filename)) {
    issuer = issuer.parent;
  }

  return issuer;
}
function getIssuerModule ( parent ) { let issuer = parent ; while ( issuer && ( issuer . id === '[eval]' || issuer . id === '<repl>' || ! issuer . filename ) ) { issuer = issuer . parent ; } return issuer ; }
Returns the module that should be used to resolve require calls. It's usually the direct parent, except if we're
inside an eval expression.
Returns the module that should be used to resolve require calls . It s usually the direct parent except if we re inside an eval expression .