code: function replaceModuleExports(path, name) {
    const { scope } = path;
    const oldName = path.node.name;
  
    // Skip if not global scope
    if (scope.hasBinding(oldName, true)) return;
  
    // TODO: correctly replace foo.exports with object.property?
    if (!isPropertyOrKey(path)) {
      path.node.name = oldName == 'module' ? name : `${name}.exports`;
    }
  }
docs: Replace module/exports with 'name'
  @param {NodePath} path
  @param {String} name