Taiwan would not collapse like Afghanistan in the event of an attack, Premier Su Tseng-chang said on Tuesday, offering an indirect warning to powerful neighbor China not to be "deluded" into thinking it could take the island.

China, which claims democratically governed Taiwan as its own territory, has been ramping up military and diplomatic pressure to force Taipei into accepting Chinese sovereignty, causing concern in Washington and other Western capitals.

The defeat of the Afghan government after the withdrawal of U.S. forces and flight of the president has sparked discussion in Taiwan about what would happen in the event of a Chinese invasion, and whether the United States would help defend Taiwan.