Over the course of a star's life on the main sequence this loss is usually negligible compared to the star's total mass; only at the end of a star's life when it becomes a red giant or a supernova is a large proportion of material ejected.