Taiwan stands no chance right now, but how many billions of dollars in weapons would it take to change that calculus? Ukraine is fighting off Russia despite being in a much worse position because of the endless funnel of weaponry from the West, so it seems that if Taiwan can dig itself in and arm itself to the teeth it can become a legitimate threat. China will be forced to deal with having a hostile enemy as a neighbor, and even if Taiwan didn’t openly invade they could still become a serious regional threat to China and Chinese interests.
Think about the Korean peninsula for what the future might hold.