Fábio Santos
Fábio Santos
I'm looking into how this can be improved. One of the problems it has is that it mutates the original function. This might not be acceptable, because the function might...
Good suggestions here. There should've been a notice all along, but now all that can be done is a notice about how the usage was deprecated along with the error.
I think we can piggy-back on the options we already have for Safari 10/11 on this. We also need to enable these options by default as Safari has a lot...
I'm preventing this inline step on all browsers. I suspect it'll have a small impact on output size.
Hello! This is intended. The object doesn't contain the `a` property and so Terser can deal with this basic case.
In that case this is Terser assuming that somebody could've messed with Object.prototype in another file. ``` Object.prototype.a = 'not undefined' ``` There's a case for an `unsafe_*` option that...
That's my way to look at it too. Though a compiler should always strive for correctness by default, unsafe options can always opt you out.
I'm confused as to why the functional tests don't run. Maybe there's a test in react that uses document.all? 🤔
Oh, I think I know what it is then. What we're running the tests on is node 12 (one of the applications under test requires it).
This is interesting. What's your use case? I can certainly see this used for minifying a lambda function's whole directory so that it doesn't go over AWS's limits.