Skip to content

Commit

Permalink
Merge branch 'patch-2' of https://github.com/porsager/rollup into por…
Browse files Browse the repository at this point in the history
…sager-patch-2
  • Loading branch information
Rich-Harris committed Mar 9, 2017
2 parents d3c19ed + ff356fa commit 05c44e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ast/nodes/ExportDefaultDeclaration.js
Expand Up @@ -115,6 +115,8 @@ export default class ExportDefaultDeclaration extends Node {
const hasEffects = this.declaration.hasEffects( this.module.scope );
code.remove( this.start, hasEffects ? declaration_start : this.next || this.end );
}
} else if (name === this.declaration.name) {
code.remove( this.start, this.next || this.end );
} else {
code.overwrite( this.start, declaration_start, `${this.module.bundle.varOrConst} ${name} = ` );
}
Expand Down

0 comments on commit 05c44e5

Please sign in to comment.