loader: Add __opts__
to pack if not already present
#63013
Merged
__opts__
to pack if not already present
#63013