I have everything pretty much working with advanced minification in my game except for one issue. My whole game is pretty much in javascript except for some touch events that then call into the code.
I have implemented a pseudo entity control system in my game where I just assign components to my entities and I have an algorithm that can find any entity with any combination of components to act upon in the systems classes. One of my systems is a movement system and it handles moving anything that has a movement component attached to it.
All of this works fine with no and simple minification, but not with advanced.
The issue is I use es6 functions to iterate over, reduce, and flatten the final result of the component search. To do this I am iterating over the complete object collection as such Object.keys(this.runtime.objects). Under anything but advanced minification this returns an array of all properties on the objects object. In advanced minification it returns an empty array.
Is there something happening during advanced minifcation that prevents the properties for the objects collection from being iterated over ?