From d9193654dcb2bde76e15c8699240a9659ee237c6 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Thu, 22 Sep 2016 09:59:26 -0700 Subject: [PATCH] Remove redundant check. --- src/ast/nodes/ExportDefaultDeclaration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ast/nodes/ExportDefaultDeclaration.js b/src/ast/nodes/ExportDefaultDeclaration.js index 30e402c..ab4a776 100644 --- a/src/ast/nodes/ExportDefaultDeclaration.js +++ b/src/ast/nodes/ExportDefaultDeclaration.js @@ -76,7 +76,7 @@ export default class ExportDefaultDeclaration extends Node { super.render( code, es ); } else { if ( treeshake ) { - if ( functionOrClassDeclaration.test( this.declaration.type ) && !this.declaration.activated ) { + if ( functionOrClassDeclaration.test( this.declaration.type ) ) { code.remove( this.leadingCommentStart || this.start, this.next || this.end ); } else { const hasEffects = this.declaration.hasEffects( this.module.scope );