A government has an obligation to protect national security. Letting another country be a single point of failure in your supply chain is a major failure of national security and ability to self determine. The government failed to regulate IP transfers and failed to restrict businesses from behavior that, while individually harmless, is collectively harmful.
The US governments failure to regulate very much ceded power directly to China.
Add to that the unequal trade agreements of china practicing protectionism while America does not and the result is a stunning American foreign policy failure.
The prevailing idea was that the west thought an economically successful china would liberalize, and therefore this ceding of power was ok and a net benefit. I think the violation of Hong Kong and Xi's wolf warrior diplomacy has been the turning point where the west now understands that China is an ideological enemy with a zero sum ideology.
We invested specifically and heavily into the PRC, and there’s a case to be made that that was a mistake as long as the CCP was the exclusive dominant political party within the PRC because right now, it’s still that. Not that a democratic China is necessarily a friendly China, but it’s at least one we wouldn’t have to trade against our liberal values to trade with.
Do something about China? Like shipping factory machines wholesale?
The idiots in charge built up the Chinese into a manufacturing superpower!