Closed carcinocron closed 7 years ago
Yes, minifiers will undo this. Please, see README: https://github.com/nolanlawson/optimize-js#is-optimize-js-intended-for-library-authors
However, note that optimize-js should run after Uglify, since Uglify strips extra parentheses and also negates IIFEs by default. This also means that if your users apply Uglification to your bundle, then the optimization will be undone.
I'd just like to have clarified (and preemptively warned about) using a minifier after this. I'm worried they might detect the parenthesis as unnecessary and remove them.