And ultimately, at any given scale, it's all about control.
Everything that is fundamental to a group's survival should be under that group's control. A viable, stable country needs to be able to defend its borders, maintain order, and keep its people housed, clothed, and fed. There's a lot more to making a NICE country and happy citizens, but those three things are the bare minimum.
These days, that means you need to keep the computers humming because they're controlling everything. If your nation can afford to make its own chips, it absolutely should, even if they're not as good as ones you can easily source from a trustworthy ally. Just like a country should always have enough food produced locally to keep people from malnutrition or starvation if its borders are blockaded.
International trade and interdependence should be for everything beyond the survival needs, because ultimately it's more efficient. But the survival-level stuff has to be under domestic control or you're existing at the whim of whoever actually controls it.