Closed ivmakk closed 7 years ago
That's the result of https://github.com/mishoo/UglifyJS so you can open a bug there.
btw, technically there's no difference as it's packaged by the build task. 'use strict' is scoped to the script which is correct. repackaging the lib is not my concern. i'm not even sure why you'd be running code that didn't work with 'use strict'.
You would also want to file a bug with https://github.com/babel/babili for the minified es6 file.
After using of the package in compression job (joining list of files to single assert, like UglifyJS) "use strickt" will be placed in global scope.
For providing isolation of libraries scope better to move "use strict" usage into function's block: