Both MLB and Fanatics buy the same jerseys and sell them on their sites.

The hope is that the added revenue from a new contract signed with Fanatics, if that’s the path chosen by MLB, would more than offset the profit margins of as much as 20 percent it gets from the $100 million a year it rings up now by running MLB.com itself, sources added.

MLB has run its e-commerce site since 2001.

Fanatics currently operates the e-commerce businesses for the NFL, the NBA and the NHL.

The MLB’s possible move shows the increased power e-commerce retailers presently wield when competing with league sites.

“Fanatics takes a New York sports fan and, while selling them a football jersey, has the ability to cross-sell them a baseball jersey,” a source noted.

That’s an advantage a single league doesn’t have.

In June, Fanatics completed a $170 million funding round giving it a $3.1 billion valuation.