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

Issue with minimize transforming to object to the same name #580

Open
rwdevlead opened this issue Mar 29, 2022 · 0 comments
Open

Issue with minimize transforming to object to the same name #580

rwdevlead opened this issue Mar 29, 2022 · 0 comments

Comments

@rwdevlead
Copy link

Installed product versions

  • Visual Studio: 2019
  • This extension: 1.1.31

Description

When minifying the following code, variables of the same name are used in the transformation that leads to bugs in the JavaScript minimized file.

Steps to recreate

  1. Withing a .js file create an ajax call to retrieve some data.
  2. upon success of data retrieval, loop through an array from within the returned value.
  3. use this language for the loop for(let accts of data.accounts)

Current behavior

for(let accts of data.accounts) minimizes into for(let t of t)
Both the variable and the array property end up with the same name.

Expected behavior

for(let accts of data.accounts) minimizes into for(let a of b)
The variable and property should have different names

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

No branches or pull requests

1 participant