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

mangle.topLevel = true not working #424

Closed
fishbar opened this issue Feb 14, 2017 · 1 comment
Closed

mangle.topLevel = true not working #424

fishbar opened this issue Feb 14, 2017 · 1 comment
Labels
bug Confirmed bug

Comments

@fishbar
Copy link

fishbar commented Feb 14, 2017

topLevel Identifiers can't be renamed by setting up babili-preset with mangle.topLevel = true;

let result = babel.transform('let test = 1;', options);

console.log(result.code); // print `let test=1;`,   expect `let a=1;`

is anybody know how to mangle topLevel Identifiers

@boopathi boopathi added the bug Confirmed bug label Feb 15, 2017
@boopathi
Copy link
Member

Fixed in #383

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug
Projects
None yet
Development

No branches or pull requests

2 participants