To your edit: any credible nuclear break out threat from TW would be taken out within 10minutes from PRC rocketry. Of all PRC redlines, the most serious are TW ones. PRC has fought with nuclear USSR and US over less important core interests while PRC wasn't nuclear. PRC will absolutely preemptively crush any TW nuclear efforts.
As to a preemptive strike that’s extremely unprecedented for China. It would definitely be considered at the highest levels, but would they act is a much larger question especially if they discovered functional nuclear weapons. Taiwan meanwhile benefits of China did such a strike on a non nuclear weapon manufacturing factory so could be giving them false intelligence etc. This stuff just has a lot more uncertainty than you might assume.
There is also more assumed uncertainty than reality. In terms of degrees of espionage, modern PRC's intelligence gathering on TW is probably the most comprehensive apparatus anywhere. Every few years, minister level intelligence assets get exposed in TW defense. There is blind assumption and there is consensus for those that follow the space. There aren't any credible analysis that suggests TW has hidden nukes or can conduct breakout nuke development without PRC being aware.
> would they act
See edit of all the times PRC acted, with explicit prior warnings on when core redlines are crossed. It's not only precedent but interventions are near certainty. Respectfully, TW trying to bait PRC with false nuclear proliferation is counterproductive, just about the only consensus security council states and current nuclear powers have is they don't want more mid-tier nations getting the bomb. Of all the reasons the PRC could get away with attacking TW with relatively little cost, stopping nuclear proliferation is at the top.
Further we don’t know what intelligence the PRC has gathered. If China believes Taiwan has nuclear weapons or the capacity to assemble them quickly, there is going to be very little change in rhetoric from China.