Test for exportIdentifier before building exportDeclaration
This commit is contained in:
parent
56f1683f06
commit
abc90778e8
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user