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

Prevent function constructors from being mangled #112

Open
yanickrochon opened this issue Oct 16, 2015 · 2 comments
Open

Prevent function constructors from being mangled #112

yanickrochon opened this issue Oct 16, 2015 · 2 comments

Comments

@yanickrochon
Copy link

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 that Message: 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?

@vendethiel
Copy link

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.

@yanickrochon
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants