Transistor mounted on heat sink