Closed rstacruz closed 11 years ago
damn, uglifyjs does the same, that's really annoying. IMO it's really wrong to alter code just for a compressor, YUI must have a setting or something. I'd rather just do:
function Move(){}
exports.Move = Move;
assuming it does not mess with function statements haha
YUI only has the following options:
munge
(default false) -- will squelch variable names as it sees fitoptimize
(default true)preserve_semicolons
(default false)charset
(defaults to "utf-8")line_break
closing, if this is still an issue feel free to open :)
Right now, it's structured this way:
This presents a problem as YUI compressor may mangle
function Move()
into a non-named function. We've encountered this problem using move.js with Jammit.