When demand is reduced, you lower prices. Rest of the world suddenly are buyers. Governments can throw subsidies at impacted sectors too to cover the price difference while supply chains adjust. With growing trade relations, economies of scale and transition costs become factors. The cost of trade with the new trade relationships become cheaper and so does the reluctance to change (for example with a 3 year production pipeline baked, you don't walk away easily).