You can't compete against foreign labor, period. If you get in bed with the devil, expect to get screwed. Outsourcing the means of production was the best ploy the socialists came up with, and it worked beyond all of their expectations. Send all of the work to a far away land, and create a government welfare dependant class of former workers on top of it. Dismantling our industrial infrastructure was the greatest feat that the socialists achieved. Don't believe me? If china stopped shipping stuff to us tomorrow, this country would grind to a halt by the end of the week.
The greatest source of job loss in the country has been mechanization, automation, computerization, robotics and improved work methods.
I'm just old enough to remember when we had clerk/typists in the US government. Today every analyst, officer, manager, executive ~~~~~ had better know how to use a computer to write his own stuff.
I saw a truck engine plant I used to work in taken from 5,000 employees down to about 500 employees (over 30 years) and actually increase it's truck engine production volume.
None of those jobs went overseas ~ they simply disappeared!