Even if things don’t “end well” for Taiwan, it’s unlikely that China will obtain Taiwan‘s manufacturing abilities. They will rather be destroyed, to ensure that China doesn’t get their hands on them, and then everyone will suffer the consequences.
Because the Taiwanese government paid for it to be there in the 80's