From abc90778e86ce5afb4eada2e6a499c08c37a709e Mon Sep 17 00:00:00 2001 From: Lars Kappert Date: Mon, 5 Jan 2015 21:17:12 +0100 Subject: [PATCH] Test for exportIdentifier before building exportDeclaration --- lib/6to5/transformation/modules/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/6to5/transformation/modules/common.js b/lib/6to5/transformation/modules/common.js index d527e49e73..71223d8ef7 100644 --- a/lib/6to5/transformation/modules/common.js +++ b/lib/6to5/transformation/modules/common.js @@ -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;