To prevent the eggplant from becoming too oily, it's important to use a nonstick pan for cooking. This helps to limit the amount of oil the eggplant absorbs while ensuring it doesn't stick to the pan.