Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't let uglify-es inline functions with arguments
Fixes facebook#346. This is a workaround for a bug in uglifyjs2 (mishoo/UglifyJS#2842), which can cause name collisions when a function with arguments is inlined. This can cause an unintended shadowing of a `var` or `let`, or a `TypeError: Assignment to constant variable` in case of a `const`.
- Loading branch information