Put the blueberries, water and lemon juice (and vanilla, if using) in a non-stick pan, cover and bring to a boil.
Remove the lid and cook on a medium heat for ca 15 minutes, stirring regularly. The mixture will reduce by 1/3 and thicken. Smash the berries with a spoon while they cook.
You can blend the mixture if you wish to have a smooth consistency. I like it the way it is, with a few bits and pieces in it.