Test for exportIdentifier before building exportDeclaration

This commit is contained in:
Lars Kappert 2015-01-05 21:17:12 +01:00
parent 56f1683f06
commit abc90778e8

View File

@ -55,7 +55,7 @@ CommonJSFormatter.prototype.importDeclaration = function (node, nodes) {
};
CommonJSFormatter.prototype.exportDeclaration = function (node, nodes) {
if (node.default) {
if (node.default && !this.exportIdentifier) {
var declar = node.declaration;
var assign;