01 - In a medium saucepan, combine diced strawberries, granulated sugar, and lemon juice. Stir thoroughly to coat strawberries evenly.
02 - Place the saucepan over medium heat and cook for 5 to 7 minutes, stirring occasionally, until strawberries release juices and begin to soften.
03 - In a small bowl, whisk together cornstarch and water until a smooth slurry forms.
04 - Add the cornstarch slurry to the saucepan, stirring constantly, and continue cooking for 3 to 5 minutes, until the mixture thickens and turns glossy.
05 - Remove saucepan from heat. Stir in vanilla extract, if using.
06 - Allow filling to cool completely before using as a cake, cupcake, or pastry filling. The mixture will further thicken as it cools. Store any leftover filling in an airtight container in the refrigerator for up to five days.