(Updates temblor strength, adds aftershocks, buildings evacuated)
TIJUANA, Mexico, Dec 30 (Reuters) - A moderate strength earthquake rattled both sides of the U.S.-Mexican border on Wednesday, breaking windows and scaring residents but there were no immediate reports of injuries.
The 5.8-magnitude quake, which struck near the Mexican border city of Mexicali, was felt widely in the San Diego and Tijuana areas.
Buildings were evacuated on both sides of the border and several small aftershocks were felt after the initial temblor.
Mexicali, east of the city of Tijuana, is home to a number of factories that assemble goods for export to the United States.
The U.S. Geological Survey originally measured the quake as a 5.9 magnitude but later downgraded the size.
Reporting by Lizbeth Diaz and Anahi Rama in Mexico and Steve Gorman in Los Angeles, writing by Robert Campbell