Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variables used only in IIFE are not removed #3427

Closed
marcospassos opened this issue May 27, 2019 · 0 comments · Fixed by #3428
Closed

Variables used only in IIFE are not removed #3427

marcospassos opened this issue May 27, 2019 · 0 comments · Fixed by #3428

Comments

@marcospassos
Copy link

marcospassos commented May 27, 2019

Variables used only in IIFE are not removed, example:

 var Foo;
 (function (Foo) {
      Foo["bar"] = "bar";
  })(Foo || (Foo = {}));

The above code is a common pattern used by bundlers such as Rollup.

alexlamsl added a commit to alexlamsl/UglifyJS that referenced this issue May 28, 2019
alexlamsl added a commit to alexlamsl/UglifyJS that referenced this issue May 28, 2019
alexlamsl added a commit to alexlamsl/UglifyJS that referenced this issue May 28, 2019
alexlamsl added a commit that referenced this issue May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant