Upvote:1
No, Taipei airport has airside transit, so you do not need to go through customs in Taiwan, assuming you have a single ticket.
Also for Bali you'll be getting a free Indonesian visa now, as long as you're leaving Indonesia through Bali or other approved airports. Visas are free since mid-March 2016 (as usual, they made them free two days after I entered Indonesia :()