To add to that. mainland China banned citizens from traveling to Taiwan as individual tourists 2019 July because of other reasons. So yes Taiwan did not have huge flows of mainland Chinese.
But they did, for business. There are also millions of Taiwanese that either live or work in the PRC. Taiwan was one of the major international destinations for flights from Hubei and not coincidentally one of the first countries with cases outside China.