-
Notifications
You must be signed in to change notification settings - Fork 39
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
Prevent function constructors from being mangled #112
Comments
I thoight this was a duplicate, but apparently it's not... You should add a property yourself to keep track of the name, I think. |
Well, could there be some way to pass an option to specify reserved function names that should not be mangled? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When optimizing some code sent to the browser with browserify, I expose a constructor function as
Message
, but when I evaluate the generated code, I see thatMessage: function b(d)
, so I lose the constructor name, so I cannot see the correct object types once instanciated.Is there a way to keep constructor function unmangled?
The text was updated successfully, but these errors were encountered: