What's it take for an engineer in the US to actually do something like this? If my boss/product manager wanted me to do something like this, I'd be calling them out for shitty politics, and telling them they need to find a new engineer because I'd quit immediately - and likely incite others to come with me. Maybe I have a higher sense of morality than others, but I'm no shill for China's power over Taiwan. I can use…
If it's your company, maybe you have that privelege. But in the USA you're probably an "at will" employee. I would admire your moral stance but you'd probably get fired.
Refusing to do work you're asked of will probably only get the company to find someone who is willing.
So you're better off complying and using your talents to find other ways to allow users to circumvent this issue if they really wanted to.