depression and weight loss

so ive been suffering with depression throughout my pregnancy and its really been effecting my weight i started at 11 stone at 8 weeks pregnant lost almost a stone but managed to finally gain it back and even go up to almost 11 and a half stone but ive had a bad week again and its dropped back to 11 stone at 25 weeks pregnant . i pretty much lose the weight as quick as i gain it. im worried it will effect the baby?