Fábio Santos

Results 321 comments of Fábio Santos

I appreciate the repro and the benchmark! `reduce_funcs` is documented as something you should disable if you experience perf problems, but this is a significant slowdown. I have a feeling...

Assuming `bar` can be directly spread out into the loop (IE it won't end up as an IIFE) I assume it should be fine. Question from a fellow character-by-character tokenizer...

This seems safe to me. The name `e` can be shadowed and reused inside the class, because classes make their name available within, much like `(function fName() { /* use...

As a side note, Terser doesn't create `let` variables. In some circumstances it might create `var`. I've added the suboptimal output label because I think something in your toolchain is...

Interesting! This is a consequence of dead code elimination being 2-step: inline, then remove. If those 2 steps don't agree (inline thinks t() will be removed), it can cause duplicate...

Yeah I think it was a mistake to add those parens. IIRC there was some minor performance boost in firefox but I don't remember how good the benchmarks were.

@nifgraup the reason we have the `ecma` option is to make sure the output code works in that browser. The reason we do this, is that ES6 code is smaller!...

@nigraufp your idea is nice overall, but I'd be happier to have browserslist. But if you think it's easier to implement what you speak of, send a pr ;)

Interesting case! I'm convinced `const` is a part of the issue here. Terser doesn't like messing with it usually.