fix: remove ExportNamedDeclaration when the specifier is empty (#10638)

This commit is contained in:
Huáng Jùnliàng 2019-11-04 15:51:24 -05:00 committed by Nicolò Ribaudo
parent d023e105b7
commit 5e24016623
3 changed files with 11 additions and 0 deletions

View File

@ -413,6 +413,8 @@ export default declare((api, options) => {
path.replaceWithMultiple(nodes); path.replaceWithMultiple(nodes);
} }
} else {
path.remove();
} }
} }
} }

View File

@ -0,0 +1,8 @@
System.register([], function (_export, _context) {
"use strict";
return {
setters: [],
execute: function () {}
};
});