Closed shaan1337 closed 5 years ago
It looks like this bug is a regression from previous version of UglifyJS. It previously minified to code that works correctly:
test=function(t){return{whatever:"hello"}},test(!0);
As you note, it does not compress properly in the current version, 3.4.9. This can be seen by running it directly on the file you provided.
I recommend opening an issue on the UglifyJS project, so they can look at your issue.
Version: Latest (3.0.1)
The following code:
is minified to:
which throws an
e is undefined
error (e
is being used before initialization to{}
)Reproduction steps:
yarn install
(or npm install)gulp minify
Run original file, there are no errors:
node file.js
Run minified file:
node dist/file.js
Error is thrown: