remove special minification.removeConsole ExpressionStatement handling
This commit is contained in:
parent
80a77bd6a2
commit
333e287226
@ -7,10 +7,6 @@ export var metadata = {
|
||||
|
||||
export function CallExpression(node, parent) {
|
||||
if (this.get("callee").matchesPattern("console", true)) {
|
||||
if (t.isExpressionStatement(parent)) {
|
||||
this.parentPath.dangerouslyRemove();
|
||||
} else {
|
||||
this.dangerouslyRemove();
|
||||
}
|
||||
this.dangerouslyRemove();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user