have #__PURE__ hint only work when compress side_effects option enabled
This commit is contained in:
parent
883ce8148b
commit
b943c0d438
|
|
@ -1288,7 +1288,7 @@ merge(Compressor.prototype, {
|
|||
}
|
||||
|
||||
def(AST_Call, function(compressor){
|
||||
if (has_pure_annotation(this)) {
|
||||
if (compressor.option("side_effects") && has_pure_annotation(this)) {
|
||||
compressor.warn("Dropping __PURE__ call [{file}:{line},{col}]", this.start);
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user