If you are pregnant and you have epilepsy, what happens to the baby when the mom has a siezure?

I have temporal lobe epilepsy that cause complex partial siezures and these lead to nocturnal grand mal siezures. I want to have children but I am very concerned about birth defects. Has anyone been through this?