Steve Bannon once slammed House Speaker Paul Ryan as a “limp-d–k m——-r who was born in a petri dish at the Heritage Foundation,” according to a new book.

The top presidential aide and Breitbart News founder made the comments during the Republican presidential primaries in 2016, as some members of the party began floating Ryan as a possible alternative to Donald Trump, Bloomberg Businessweek reporter Joshua Green writes in the book “Devil’s Bargain: Steve Bannon, Donald Trump and the Storming of the Presidency.”

The rumors sent Bannon into a “panic” and he began “plotting an all-out war to stop Ryan, of whom he was both fearful and dismissive — sometimes within the same sentence,” according to an excerpt published on Talking Points Memo.

The Heritage Foundation is a conservative think tank that Bannon believes to be part of the “globalist donor class,” according to the book.

“Bannon was prepared to sic the alt-right on Paul Ryan if he tried to steal the GOP nomination from Trump at a brokered convention,” Green writes, according to Axios.

Bannon had previously invested in a company that made money in World of Warcraft’s virtual economy, and saw the “monster power” of the “rootless white males” who play the game, according to the book.

These were the nerds he expected to take down Ryan.

“Pepe’s gonna stomp their ass,” Bannon reportedly said, referring to the cartoon frog mascot of the alt-right.

Bannon’s ascension to Trump’s right-hand man came days after several scathing New York Times articles that prompted Trump to blow up at his then-campaign manager Paul Manafort, according to the book.

“You think you’ve gotta go on TV to talk to me?” Trump shouted, following an article that described the candidate as “sullen and erratic.”

“You treat me like a baby! Am I like a baby to you? I sit there like a little baby and watch TV and you talk to me? Am I a f—g baby, Paul?”

The next day, the Times revealed that Manafort had received $12.7 million from a pro-Russia party in the Ukraine.

“How can anybody allow an article that says your campaign is all fucked up?” Trump again fumed at Manafort, according to Green.

Days later, Trump replaced Manafort with Bannon.