Reproduction and fix of issue found at https://stackoverflow.com/questions/56643186/cant-find-variable-after-javascript-minification
npm i
to install dependencies, then:
npm run broken
to run reproduction of issue
npm run working
to run working version
Requires node.js