Now, with some US based production, TSMC is still in charge, and more resilient to disruption. So it may still be a very strong move.
Reactions to active conflict have a different threshold than normal civil operations. The interests of the US are biased towards continued peace. War is inherently value destructive (even if the military industrial complex gets to sell more stuff for a bit) so a majority of the population from a multitude of perspectives would rather remain fat and happy with their circuses (sports-ball).
That balance changes, as it has since the dawn of western history times, when outside forces disrupt the regular machinations of the people. When events like Pearl Harbor, the turn of the century terrorist airplane hijackings that turned them into missiles and America's citizens into hostages to our own national security theater paranoia, or some country turning the place all of our iPhone and computer brains are fabricated in into a war zone.
You are protecting your ego. The modern circus is the algorithmic feed. And we are consuming it more obsessively then any previous form of entertainment.
In a hot war, they'd absolutely do the first bit.
I don't think they need to do the second bit.
Taiwan has significant leverage in this respect
If China would just wipe out Taiwan's ability produce chips, and disables part of the US information tech supply chain, then it would be bad for Taiwan right?