01 - Preheat oven to 350°F. Line a 9x9-inch baking pan with parchment paper, leaving an overhang for easy removal.
02 - In a medium bowl, whisk together flour, baking powder, baking soda, salt, cinnamon, nutmeg, and ginger.
03 - In a large bowl, whisk oil, granulated sugar, brown sugar, eggs, and vanilla until smooth and well combined.
04 - Fold in the grated carrots.
05 - Add the dry ingredients to the wet mixture and stir until just combined. Fold in nuts if using.
06 - Spread the batter evenly into the prepared pan. Bake for 28–32 minutes, or until a toothpick inserted in the center comes out clean.
07 - Let cool completely in the pan on a wire rack.
08 - Beat cream cheese and butter together until creamy. Add powdered sugar, vanilla, and salt; beat until smooth and fluffy.
09 - Once bars are completely cool, spread the frosting evenly over the top. Lift the bars out of the pan using the parchment paper, cut into 16 squares, and serve.