Unheated food-grade plastic is generally okay, but when exposed to heat or UV light, you have a big problem. This paper is worth reading [0], according to their experiment, almost all commercially available plastic products—independent of the type of resin, product, or retail source—leached chemicals after being exposed to UV lights or heat.
There are several pre-made food products on the market with plastic containers that instructs you to cook them in microwave with the plastic packaging still on. One product I tried recently even had a little tab on the plastic wrapper that would start whistling when the food was done. I think I tried it that one time. I don't usually buy things like that.