Additional fixes.
I figured the change from UglifyJS to terser is causing a major break on external libraries. I haven't noticed because I always use the latest stable, but this is major. All the global references that must remain un-renamed are being minified breaking runtime scripts for third party libraries.