Good afternoon. How to make it so that when exporting an object to obj, all primitives are combined into one

good afternoon. How to make it so that when exporting an object to obj, all primitives are combined into one object