China offered the Dominican Republic a $3.1 billion package of investments and loans to get them to sever ties with Taiwan, a Taiwan official said on Tuesday, after the Caribbean nation switched allegiance to China in a diplomatic blow to the self-ruled island.