Modern China is a vastly better place to live than China of 60+ years ago. Many countries are nicer places to live, but 1+ Billion people are simply better off making the “exploitation” narrative ridiculous.
Anyway, the answer is both. They were being exploited 60+ years ago, and they're still being exploited now, regardless of if they can take the train away from the factory that they work at to visit their relatives over the holidays.
The government is still horrible, that’s unlikely to change but foreign markets aren’t the issue.
It is easier to think poor quality of life is ok for people you cannot identify with.
The CCP was objectively the worst government across thousands of years, and foreign markets didn’t fix the underlying problems but they helped the general population in a way the government was never going to without them.