Taiwan has the human intelligence, signals intelligence and electronic intelligence capabilities to know when the Chinese Communist Party is going to launch an invasion fleet. A CCP invasion of Taiwan is an existential threat to the Republic of Taiwan and its people.
Taiwan is one of the most technologically advanced countries in the world. Taiwan has tremendous intellectual resources and financial resources.
Taiwan also occupies many of the small islands in the 90 km wide Taiwan Strait. Taiwan will destroy any CCP invasion fleet with tactical nuclear weapons. One or two low yield tactical nuclear weapons will destroy any fleet the CCP assembles before it gets halfway across the Taiwan Strait.