Browse Source

Merge pull request #1 from mbostock/internally-used-default

Remove redundant check.
legacy-quote-reserved-properties
Permutator 8 years ago
committed by GitHub
parent
commit
4df36f3974
  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 );
} 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 );

Loading…
Cancel
Save