The actress, who plays Alicia Gallagher in the ITV1 soap, announced her pregnancy in March and later confirmed that she is expecting a boy.
Alicia punches Val Pollard (Charlie Hardwick) in an upcoming episode after her opportunity to confess her love to David Metcalfe (Matthew Wolfenden) is dashed. It is later revealed that Alicia has broken the terms of a previous suspended sentence and will go to jail.
Anderson told the Sunday Mail: "I really thought they would say, 'She's gone off in a taxi to see her sister', something really normal, and that would be that. Then this elaborate story came about with a previous conviction and I was going, 'Thank you'. I just thought it was brilliant.
"I felt privileged they had thought of it that way. The producers have been amazing in the fact they have said I can take as long as I want to. I am not under any pressure. Personally, I love my job, and I am thinking maybe I want to come back towards the back end of the year.
"My husband works from home so the baby will only be with his dad. But obviously it is not set in stone yet, because my feelings could well completely change."
The singer-songwriter added: "First and foremost my priorities are my baby, then Emmerdale. Whatever they need me for I'm there, absolutely. I have an album worth of material I wanted to put out earlier this year but priorities change when you get pregnant."