Adding a slurry of cornstarch and water to the fruit and sugar will thicken the sauce as it simmers. Make sure to dissolve the cornstarch in water before stirring it into the fruit mixture or the cornstarch may not dissolve completely in the compote.