Taiwanese companies run most of the major hightech manufacturing in China. For example, Foxconn is a taiwanese company. Most of my dealings with these types of manufactures has been in discussions of how to circumvent tariffs, not in really exiting manufacturing in the mainland.
When I look at what occurring, I think it has more to do with their cheapest labor force is in China. So the scale and profit is hard to leave.