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

babili overminifies statements with || '' #176

Closed
muntact opened this issue Oct 5, 2016 · 2 comments · Fixed by #179
Closed

babili overminifies statements with || '' #176

muntact opened this issue Oct 5, 2016 · 2 comments · Fixed by #179

Comments

@muntact
Copy link

muntact commented Oct 5, 2016

With version 0.0.4 of babel-preset-babili, Safe setting a variable to a null string is removed by the minification process.

The following code:

this.value = a || '';

is minified to:

this.value = a;
@loganfsmyth
Copy link
Member

Looks like a dup of #174 ?

@boopathi
Copy link
Member

boopathi commented Oct 5, 2016

Yes. let's track it in #174

@boopathi boopathi closed this as completed Oct 5, 2016
boopathi added a commit that referenced this issue Oct 5, 2016
kangax pushed a commit that referenced this issue Oct 5, 2016
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.

3 participants