function getUsedExportsCompat(moduleGraph, module) {
  if (moduleGraph) {
    return moduleGraph.getUsedExports(module);
  }

  return module.usedExports;
}
Find if module exports are used. The ModuleGraph api does not exists in webpack@4
so falls back to using module.issuer
@param {Object} moduleGraph - Webpack module graph
@param {Object} module - Module