Inconsistent behaviour in plugins between development and production

I want to get this fixed in core, the behaviour should be the same between environments, but not sure how to approach it. I opened an issue in the AMS repo to get feedback there too Runtime modification of parent serializer attributes doesn't update child attributes · Issue #2254 · rails-api/active_model_serializers · GitHub

Any suggestions?