Jobs would still move, it's just that an industry in another country owned by someone else would eventually take the business. That is unless the local industry was somehow able to ban foreign competition.
The beauty of capitalism is that it roots out inefficiency. If you take a look at history, state controlled enterprises are the most polluting.
You don't have to ban foreign competition, it just has to be an informed choice.
Why is company x cheaper, what can we do to emulate them (do we want to?). Although we might have higher costs buying locally what other benefits do we have?
If all things are equal and the advantage of the foreign competitor is based entirely on cheaper labor and efficient production then fine. Let the market sort it out. There should however be protections against the outsourcing of pollution. You shouldn't be able to undercut local products by dumping your waste stream in a river. Which is often the case. There should also be some basic standards for the foreign workers who produced imported goods.
The beauty of capitalism is that it roots out inefficiency. If you take a look at history, state controlled enterprises are the most polluting.