11. Make the Pineapple Compote
While the tamales steam, make the pineapple compote: Melt the butter in a small saucepan over medium-low heat. When the butter is foamy, add the pineapple, brown sugar, and cinnamon. Cook, stirring, until the pineapple has broken down.
Remove from the heat and add the rum. Give the mixture a stir, then return it to medium-low heat. Continue to cook, still stirring, until the mixture is syrupy and the alcohol has evaporated.