I was curious so I did some numbers. All sold numbers are adjusted for inflation from the midway point of said console's life. All are based on original prices, not taking discounts and new iterations into account, assuming they roughly balance each other out.
Wii - 101.64 mil, $322 each, $32.7b
DS - 154.90 mil, $192.70 each, $29.895b
Total Revenue from hardware - $62.595 billion
Switch - 130mil + with $300 price tag by mid point (2021) is $39 billion.
Total Revenue from hardware - $39 billion
If these numbers are correct, then it would take them selling a whopping 210 million Switches to make hardware revenue from the Wii + DS era. But what about profit?
According to:
Detructoid, Nintendo profited $6 per Wii sold, or $610 million.
I can't find profit data on DS, so let's assume it's more than Wii. If $10 per sold, that's $1.55 billion.
Cinemablend, Nintendo profits $40 per Switch sold, or (based on projection of 130 million sold), $5.2 billion.
So, unless these profit numbers are off, it looks like the Switch already passed up the total profitability of Wii/DS for hardware when it hit 56 million Switch's sold.