In the 19th century , cacao eventually surpassed sugar as the main export crop ; in the 20th century , nutmeg became the leading export .