You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far, I’ve only seen (and used) examples where null is passed as the second argument (= pipeline) to esmangle.optimize. What should pipeline look like if you only want to remove/avoid one or two optimizations?
Yeah, unfortunately, it's a "replacement" API where, if you provide a value, it is used as an alternative to the default. If you want to disable just one transformation, you will have to explicitly specify all transformations except the one you'd like to omit. We could probably use an "except" style API.
It would be cool if there was an boolean option that we could pass to
esmangle
for each of these optimizations: https://github.com/Constellation/esmangle/blob/c9393254197119a73f92055ee6d1887535cbf47d/lib/esmangle.js#L254-L288All the options would be
true
by default, but that way people could disable optimizations they don’t need/want, e.g.:The text was updated successfully, but these errors were encountered: