Preheat the oven to 350 degrees. Butter your 9 inch heart cake pan.
In the bowl of a stand mixer fitted with the paddle attachment, beat the butter and sugars on high until light and fluffy, about two minutes.
In a medium bowl, sift the flour, baking powder, baking soda and salt.
Scrape down the side of the bowl. With the mixer on low speed, add the egg and vanilla extract until incorporated, about one minute.
With the mixer on low speed, add the dry ingredients to the mixing bowl and mix until just combined. Add the chocolate chips and mix for another ten seconds or so until a cookie dough forms.
Using a spatula, place the batter into the greased heart cake pan, using an offset spatula to press the batter down into the heart shape.
Bake for 28-30 minutes until the cookie has lightly browned on top. Let cool completely before frosting.