(I'm not agreeing or disagreeing, just pointing out the argument.)
https://ourworldindata.org/food-choice-vs-eating-local
Transport is a small contributor to emissions. For most food products, it accounts for less than 10%, and it’s much smaller for the largest GHG emitters. In beef from beef herds, it’s 0.5%.
In that article it correctly states that the cost of transportation is small across all food types including beef, but in the context of apples specifically it shows the cost of transportation is not only significant to the total cost of the apple, packaging costs aren’t even visible. So the idea that packaging it in shrink wrap to avoid spoilage and transport of more apples actually seems to make sense?
a) that's per kilogram, and probably not with each apple packaged individually and in plastic
b) plastic is inexpensive, but its true cost is not reflected in its price due to externalities (and emissions are not the only one)
So ... it's not easy to answer. My point was that whether food is sourced locally or shipped (not flown) from afar may not be the main factor to consider.