Taiwan has roughly the same population as Australia packed into an area 1/10th the size of Japan. This makes it more not less difficult and yet Taiwan stopped an outbreak and went eight months without a single local transmission.
Also your representation of Taiwan's trade is completely disingenuous.
Please google the phrase, "Taiwan's largest trading partner".