Stomach bug

Legit have been puking non stop for two days. So weak and light headed. I’ve tried to keep fluids down like water and sprite and it always ends up coming up. This morning I ate two pieces of bread and it seems to be staying down. Is this harming the baby?