support for uglifier #90

Closed
stereobooster opened this Issue Jan 24, 2012 · 4 comments

Projects

None yet

4 participants

@stereobooster

support for uglifier

var g = void 0,
h = !0,
i = null,
j = !1;

should become

var g = undefined,
h = true,
i = null,
j = false;
@einars
Contributor
einars commented Jan 24, 2012

Only these replaces wouldn't help much, taking into account other optimizations uglifier can make.

I'd see a good use for a generic "fattener" of javascript though — adding back missing optional braces, semicolons and expanding ternary operators, but it'd require a proper javascript parser, building a proper syntax tree, much like the uglifier does, quite impossible to do with the current puny beautifier parser.

@brianfreud

I had a similar request over at Google code compiler. http://code.google.com/p/closure-compiler/issues/detail?id=653&sort=-id&colspec=ID%20Type%20Status%20Priority%20Component%20Owner%20Summary

De-compressing nested ternary strings would be incredible, though I agree, it'd be difficult to automagically fatten up minimized code.

@bitwiseman
Contributor

Are you talking about just the three examples you mention above or something more general?

@bitwiseman
Contributor

Out of scope. See #254.

@bitwiseman bitwiseman closed this Jun 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment