If you think the US military wouldn’t immediately remove all assets from California you’d be sorely mistaken. There is no way that the fed would allow assets like that to be given away to a successionist movement. Even if they didn’t, California doesn’t have the logistic ability to maintain those assets for more than id say 3 months.
Photolithography itself was invented in the US a while ago, but the company that perfect the manufacturing process that is used for modern chips is in either Belgium or Denmark iirc. That company just leases its machines to TSMC so it’s entirely possible they could just move the machines to the USA. But that’s my surface level understanding, I don’t know for sure.