Skip to content

Commit 49fd35d

Browse files
committed
Resolve export= module members
1 parent 3b0515f commit 49fd35d

File tree

2 files changed

+191
-1
lines changed

2 files changed

+191
-1
lines changed

src/compiler/checker.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,6 +1465,10 @@ namespace ts {
14651465

14661466
function getExportsForModule(moduleSymbol: Symbol): SymbolTable {
14671467
const visitedSymbols: Symbol[] = [];
1468+
1469+
// A module defined by an 'export=' consists on one export that needs to be resolved
1470+
moduleSymbol = resolveExternalModuleSymbol(moduleSymbol);
1471+
14681472
return visit(moduleSymbol) || moduleSymbol.exports;
14691473

14701474
// The ES6 spec permits export * declarations in a module to circularly reference the module itself. For example,

0 commit comments

Comments
 (0)