Intermediate mass stars experience periods of rapid growth in their late stages of formation. The growing young star emits more radiation that encourages greater accretion. Rather than depleting their protoplanetary disks and preventing gas giants from forming, the opposite is true.