As American companies recalibrate the risks of relying on Chinese factories to make their goods, some are shifting business to a country far closer to home: Mexico.

The unfolding trend known as "near-shoring” has drawn the attention of no less than Walmart, the global retail empire with headquarters in Arkansas.

Early in 2022, when Walmart needed $1 million of company uniforms — more than 50,000 in one order — it bought them not from its usual suppliers in China but from Preslow, a family-run apparel business in Mexico.