mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 11:35:42 -06:00
emit 'export *' for es6 only if module exports some value
This commit is contained in:
parent
80fab7c5a4
commit
3de310af06
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user