-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Ensuring the mangler doesn't try to mangle constructors #1976
Comments
Thanks for the report. It looks like this happens because For what it's worth I recommend not doing |
I see, now I understand the error message.
I have a fairly narrow use case for this, a tiny library for which it's obvious what the public methods are and all of them are unit-tested, mangling everything except those methods seems like the best option for my use case, prefixing all the non-public stuff with |
super ()
calls in constructors
Mangling the following code:
With this command:
esbuild '--mangle-props=.' ./foo.js
Generates this error:
IMO
super
calls in constructors should be automatically detected and ignored by the mangler.The text was updated successfully, but these errors were encountered: