Star formation in Milky Way progenitors