Prepare the Cheesecake Filling: In a small bowl, beat the cream cheese and powdered sugar until smooth and creamy. Cover the dough and refrigerate for at least 30 minutes to firm it up.
Prepare the Dry Ingredients: In a medium bowl, whisk together the all-purpose flour, baking soda, and salt, then set it aside.
Cream the Butter and Sugars: In a large bowl, beat the softened butter, cream cheese, granulated sugar, and brown sugar until the mixture is light and fluffy. This should take about 2-3 minutes.
Incorporate the Wet Ingredients: Add the egg and vanilla extract, mixing until fully combined.
Blend the Dry and Wet Ingredients: Slowly add the dry ingredients to the wet mixture, stirring until everything is just combined. Be careful not to overmix.
Assemble the Cookies: Scoop about 1 tablespoon of dough and flatten it in your hand. Place about 1 teaspoon of the cheesecake filling in the center, then cover with another tablespoon of dough. Pinch the edges together to seal in the filling.
Add Raspberry Swirl: Place the filled dough balls on a baking sheet lined with parchment paper. Slightly flatten each dough ball and swirl about 1/2 teaspoon of raspberry preserves or mashed raspberries on top using a toothpick.
Bake: Preheat the oven to 350°F (175°C). Bake the cookies for 12-14 minutes, or until the edges are golden brown while the centers remain soft.
Cool and Serve: Let the cookies rest on the baking sheet for 5 minutes, then transfer them to a wire rack to cool completely. Enjoy!