code: private void maybeUpdateExportObjectLiteral(NodeTraversal t, Node n) {
      if (!currentScript.isModule) {
        return;
      }
  
      Node parent = n.getParent();
      Node rhs = parent.getLastChild();
  
      if (rhs.isObjectLit()) {
        for (Node c = rhs.getFirstChild(); c != null; c = c.getNext()) {
          if (c.isComputedProp()) {
            t.report(c, INVALID_EXPORT_COMPUTED_PROPERTY);
          } else if (c.isStringKey()) {
            if (!c.hasChildren()) {
              c.addChildToBack(IR.name(c.getString()).useSourceInfoFrom(c));
            }
            Node value = c.getFirstChild();
            maybeUpdateExportDeclToNode(t, c, value);
          }
        }
      }
    }
docs: For exports like "exports = {prop: value}" update the declarations to enforce
  @const ness (and typedef exports).
  TODO(blickly): Remove as much of this functionality as possible, now that these style of
  exports are rewritten in ScriptPreprocess step.