Skip to content

Prevent function constructors from being mangled #112

@yanickrochon

Description

@yanickrochon

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions