China is the primary origin of precursor chemicals used to make fentanyl, a highly potent opioid underpinning a deadly drug epidemic in the United States.