Prepare. Position rack in center of oven and preheat to 350°F. Grease a 9x5 inch loaf pan and or line with parchment paper, leaving overhang on long sides.
Mix dry ingredients. In a medium bowl, whisk together flour, cinnamon, allspice, baking soda, and salt.
Add sugar + wet ingredients. Add sugar and wet ingrerdients in the same bowl. Add eggs one at a time, whisking well after each. Stir in vanilla.
Add carrots, pineapple, sourdough starter, and raisins.. Add carrots, drained pineapple, sourdough starter, and raisins if using. Fold until evenly distributed.
Bake. Pour batter into prepared pan and smooth top. Bake 65-75 minutes until a tester comes out clean and top springs back when lightly pressed.
Cool. Let bread cool in pan for 10 minutes. Using parchment overhang, lift bread out onto cooling rack. Cool completely before frosting.