Better process_for_angular before other statement reductions. #395
This commit is contained in:
parent
2c305af478
commit
c3087dd179
|
|
@ -199,6 +199,9 @@ merge(Compressor.prototype, {
|
||||||
var CHANGED;
|
var CHANGED;
|
||||||
do {
|
do {
|
||||||
CHANGED = false;
|
CHANGED = false;
|
||||||
|
if (compressor.option("angular")) {
|
||||||
|
statements = process_for_angular(statements);
|
||||||
|
}
|
||||||
statements = eliminate_spurious_blocks(statements);
|
statements = eliminate_spurious_blocks(statements);
|
||||||
if (compressor.option("dead_code")) {
|
if (compressor.option("dead_code")) {
|
||||||
statements = eliminate_dead_code(statements, compressor);
|
statements = eliminate_dead_code(statements, compressor);
|
||||||
|
|
@ -212,9 +215,6 @@ merge(Compressor.prototype, {
|
||||||
if (compressor.option("join_vars")) {
|
if (compressor.option("join_vars")) {
|
||||||
statements = join_consecutive_vars(statements, compressor);
|
statements = join_consecutive_vars(statements, compressor);
|
||||||
}
|
}
|
||||||
if (compressor.option("angular")) {
|
|
||||||
statements = process_for_angular(statements);
|
|
||||||
}
|
|
||||||
} while (CHANGED);
|
} while (CHANGED);
|
||||||
|
|
||||||
if (compressor.option("negate_iife")) {
|
if (compressor.option("negate_iife")) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user