-
-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[duplicate] 'let' causing variables to disappear in for-loop #485
Comments
Hey @michaelmcleodnz! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
If it helps, this seems to be because |
I've found that this issue has already been reported in #430 and #412. |
Fixed in #713 |
This issue is occurring again on latest version of Should I open new issue or should this issue be reopened? Versions: |
As a workaround, I am now using below minify config options and everything appears to be working.
|
This only occurs in conjunction with the es2015 plugin.
The following code
gets transpiled to
which returns the undefined variable
b
. Seeminglytotal
has been removed.The same code using
var i
instead oflet i
produces the expected resultThe text was updated successfully, but these errors were encountered: