https://dictionary.cambridge.org/dictionary/english/shanghai...
https://www.urbandictionary.com/define.php?term=Shanghaied
Something got shanghaied isn't a pejorative in the way that Trump acolytes use "China virus".
Are you unaware of the Chinese Exclusion Act of 1882 -- which is exactly around the time that this term was popular and in common use?