mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
emit 'export *' for es6 only if module exports some value
This commit is contained in:
1 parent
80fab7c5a4
commit
3de310af06
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user