Anyone take vitamin D supplements as opposed to giving it straight to your baby?

I read that if mom takes a certain amount that can be sufficiently passed through breast milk then there’s no need to give it to baby with the dropper. Does anyone do this? Did your pediatrician approve?