you'd be guilty of various crimes, like tax evasion due to accounting fraud, and also price discrimination against some of your customers. Besides, you'd also be guilty of dumping, which is a variant of antitrust violation.
I mean building costs into pricing models has been around for quite a long time. Shipping is just one of those costs and costs come off the ledger for profit statements and tax purposes.
The US Postal Service has a flat rate box where if it fits, it ships anywhere for something like $15. If Amazon negotiates that to $10 and their average order qualifying for free shipping has 4 items in it, it is only $2.50 added onto the costs. So they take the retail price, discount it by 25% then add $3 to it and cover the costs of shipping without dipping too much into profits.
Businesses to this with taxes too. You place a fee or raise their rates and they just adjust their prices accordingly. It's easiest to do when the tax increase effects the entire industry too. Of course there has been some industries who got pissed and attached it as a separate fee specifically notating the law that caused the increase on the bill. Congress was really pissed when the telco industry started doing that.