Gentle cycle with mild soap, hang dry. Never a problem.
The only cycling clothes I've ruined are because of a wreck. I've never had the washer ruin my cycling stuff. I've got a Specialized jersey from the '90s I still like to break out once in a while, always run through the washer.