by placing plastic storage bags in the dishwasher.
However, this is not automatically safe.
Dishwashers can expose plastic bags to high temperatures, strong water pressure, and heated drying cycles. These conditions may damage certain types of plastic or cause the bags to lose their shape.
Unless the manufacturer specifically states that the particular bag is dishwasher-safe, handwashing is the more cautious option.
The same rule applies to microwaves and other heating appliances. Never assume that a plastic storage bag can withstand heat simply because it is designed to hold food.