Grant McCann’s men appeared to be cruising towards victory when they notched their third of the afternoon early in the second half.
A goal from Harry Clifton added to the advantage built by Francis Okoronkwo and Jay McGrath, but Wigan managed to ensure the hosts did not remain comfortable.
Joe Taylor, who Wigan have borrowed from Huddersfield Town, rifled home a long-range stunner to get the travelling fans going.
Callum Wright then registered another, creating a nervous atmosphere inside the Eco-Power Stadium. With just three minutes of normal time remaining, Owen Moxon headed home to shatter Doncaster hearts.
Here are The Yorkshire Post’s player ratings from the Eco-Power Stadium.

1. Doncaster Rovers player ratings
The ratings are in following Doncaster Rovers' meeting with Wigan Athletic. | Richard Sellers/PA Wire

2. Zander Clark - 7
Solid when called upon - difficult to argue he could have prevented either of Wigan's goals. | Fran Santiago/Getty Images

3. Jamie Sterry - 6
Dogged in his defensive work for large spells, yet was part of a backline that faltered in the second half. | Ben Roberts Photo/Getty Images

4. Owen Bailey - 6
He is a central midfielder by trade but you would never have known. Won a lot of the ball - but could not prevent the late comeback. | Jonathan Gawthorpe
