The chip manufacturing essentials are in the heads of the engineers and management of TSMC.
Loss of manufacturing facilities is always temporary, if the people survive.
Those factories cost literally hundreds of billions of dollars to build and implement over many years. And many have a zero tolerance for even microscopic dust. There won’t be a war that jeopardizes them, in my opinion.