function getIssuerCompat(moduleGraph, module) {
  if (moduleGraph) {
    return moduleGraph.getIssuer(module);
  }

  return module.issuer;
}
Gets the module issuer. The ModuleGraph api does not exists in webpack@4
so falls back to using module.issuer.