Browse Source

Remove redundant check.

legacy-quote-reserved-properties
Mike Bostock 8 years ago
parent
commit
d9193654dc
  1. 2
      src/ast/nodes/ExportDefaultDeclaration.js

2
src/ast/nodes/ExportDefaultDeclaration.js

@ -76,7 +76,7 @@ export default class ExportDefaultDeclaration extends Node {
super.render( code, es ); super.render( code, es );
} else { } else {
if ( treeshake ) { 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 ); code.remove( this.leadingCommentStart || this.start, this.next || this.end );
} else { } else {
const hasEffects = this.declaration.hasEffects( this.module.scope ); const hasEffects = this.declaration.hasEffects( this.module.scope );

Loading…
Cancel
Save