A late penalty from captain Lee Briers was all that separated the teams after a tense first half was followed by a pulsating second-half showing from both sides.
Early tries by Martin Gleeson and Toa Kohe-Love put the hosts 10-2 ahead but Wigan drew level with second-half tries by Sean O'Loughlin and replacement Danny Tickle.
Warrington prop Paul Wood and Wigan full-back Chris Ashton then exchanged tries before Briers sent the Wolves fans in the sell-out crowd home happy by winning the kicking battle with Wigan's Michael Dobson, who moments earlier screwed a drop-goal attempt narrowly wide.
Wigan coach Brian Noble said:
"It's important that we look at that final penalty because the referee appeared to change his mind, but we gave away plenty of penalties earlier".
"I think that in the first 20 minutes we went back to the bad old days, but I thought the tide had turned at half-time.
"We were a lot tougher in the second half and I certainly thought we deserved something out of the game.
"I was encouraged by a lot of things that went on in the second half, because in days gone by, they might not have responded like that.
"Had Michael Dobson knocked that one-pointer over it might have been a different story, but the reality is we have to come away from this and recognise why it went against us. But collectively I thought their effort was great."