China’s annual trade surplus in goods has topped $1 trillion for the first time, with plunging exports to the United States amid a tariff war more than compensated for by shipments to other markets, new data shows.

Figures released by China’s General Administration of Customs on Monday showed the trade surplus for the first 11 months of the year hit $1.08 trillion in November, as exports climbed 5.9 percent year-on-year that month, reversing a 1.1 percent decline the month prior.

The leap came despite a continued slump in exports to the US, which fell 28.6 percent to $33.8bn last month, the data showed.

Beijing and Washington have been locked in a bitter trade war involving hefty tariffs during the second administration of US President Donald Trump, forcing Chinese exporters to pivot to other markets – although the leaders of the world’s two largest economies agreed to pause the hostilities during a meeting in South Korea in October.