emit 'export *' for es6 only if module exports some value

This commit is contained in:
Vladimir Matveev 2016-04-13 15:14:35 -07:00
parent 80fab7c5a4
commit 3de310af06

View File

@ -55,7 +55,7 @@ namespace ts {
function visitExportDeclaration(node: ExportDeclaration): ExportDeclaration {
if (!node.exportClause) {
return node; // export * is always emitted
return resolver.moduleExportsSomeValue(node.moduleSpecifier) ? node : undefined;
}
if (!resolver.isValueAliasDeclaration(node)) {
return undefined;