A plastic bag is about 5.5 grams. 10 bags of groceries would be 55 grams.
A gallon (US) of gas is about 3350 grams. So if you drive 5 miles round trip in a car getting 20 miles/gallon for local driving, it uses 837 grams of gas. The oil in the bags is about 6% of the oil used on such a shopping trip.
Of course that doesn't include the plastic packaging of food, soft drinks, bottled water, etc. which is probably more comparable to the amount of oil used by the car.