Eggplant has a lot of moisture in it. So when eggplant cooks, that moisture is released and it can possibly get soggy. Your best way to do this is to salt the eggplant and let it sweat out some of the water before cooking. After you sweat the eggplant, be sure to pat it dry and remove the water that sweat out.