Preheat oven to 350 degrees F (175 degrees C). Grease 4 mini loaf pans.
Combine cranberry sauce, sweet potatoes, eggs, white sugar, oil, brown sugar, and vanilla extract in a large bowl; beat with an electric mixer until smooth. Add flour, nutmeg, allspice, baking soda, and baking powder; mix well. Fold raisins into the batter.
Divide batter evenly among the loaf pans.
Bake in the preheated oven until a toothpick inserted into the center comes out clean, about 45 minutes. Place loaf pans on a wire rack to cool completely.