Peel, core, and dice the apples into small cubes.
4 medium apples
In a medium saucepan, melt the butter over medium heat. Add the diced apples, brown sugar, granulated sugar, cinnamon, and nutmeg. Stir to combine.
1/4 cup brown sugar, 1/4 cup granulated sugar, 1 tsp ground cinnamon, 3 tbsp butter, 1/8 tsp ground nutmeg
Add 2 tablespoons of water and cook for 8-10 minutes, stirring occasionally, until the apples are soft but not mushy.
1/4 cup water
If you prefer a thicker filling, mix 1 tablespoon of cornstarch with 2 tablespoon of water to make a slurry. Stir it into the apple mixture and cook for another 2-3 minutes until the filling thickens.
1 tbsp cornstarch
Remove from heat and stir in the vanilla extract. Let the filling cool slightly before using in your recipe.
2 tsp vanilla extract