If astroid Minification (JS and CSS) feature is breaking your site, please disable the feature and continue using Astroid.
Minification of JS is a highly complex task and we have tried out best to make sure it works in most (if not all) cases. It still however is an experimental feature and something we hope will improve in future versions of astroid.
We request you to post on our forum (https://www.joomdev.com/forum) with details about the code that’s breaking after minfication is enabled and any particular extensions/code that may be impacted. We’ll try to apply a fix and rectify in the future versions of Astroid.