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

add options to disable mangling variable names of some functions #3290

Closed
HolgerJeromin opened this issue Nov 7, 2018 · 2 comments
Closed

Comments

@HolgerJeromin
Copy link

feature request
My code has a big section of private code, but also a public API. Both are full of jsdoc annotations.

The API part has @preserve annotation (very nice feature!), so my users have jsdoc for intellisense support. It would be nice if we could skip mangling variable names for those API functions, so provide better support in chrome devTools console in runtime:

image

Without mangling we have
image

ref #3263

@alexlamsl
Copy link
Collaborator

Use mangle.reserved

@HolgerJeromin
Copy link
Author

I had to add about 100 variable names in the array, but it worked.
This approach is not so easy to maintain and has the drawback to not mangle private code.
Thanks for the hint!

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

2 participants