Is better to see a doc immediately, taking meds to cure your body virus is better then having the virus in your body to harm bb. Don't worry, doc will prescribe preg safe meds. I took before and bb is safe
By the way, stomach flu can be serious and causing dehydration which is harmful to baby...