01 -
Preheat your oven to 350°F (175°C). Line an 8×8-inch baking pan with parchment paper or grease it lightly.
02 -
In a medium bowl, whisk together the flour, baking powder, baking soda, salt, cinnamon, nutmeg, and ginger.
03 -
In a large mixing bowl, beat the eggs, granulated sugar, and brown sugar until smooth. Add the oil and vanilla extract, and mix until well combined.
04 -
Gradually add the dry ingredients to the wet ingredients, mixing until just combined. Fold in the grated carrots, and if using, the nuts and raisins.
05 -
Pour the batter into the prepared pan and spread evenly. Bake for 25–30 minutes, or until a toothpick inserted into the center comes out clean. Allow the bars to cool completely in the pan.
06 -
In a medium bowl, beat the cream cheese and butter until smooth. Gradually add the powdered sugar and vanilla extract, and beat until creamy.
07 -
Spread the cream cheese frosting over the cooled bars.
08 -
Slice into squares and serve. Store leftovers in the refrigerator for up to 5 days.