@@ -1145,7 +1145,7 @@ var ts;
1145
1145
})(ts || (ts = {}));
1146
1146
var ts;
1147
1147
(function (ts) {
1148
- ts.version = "2.4.1 ";
1148
+ ts.version = "2.4.2 ";
1149
1149
})(ts || (ts = {}));
1150
1150
(function (ts) {
1151
1151
var Ternary;
@@ -24334,7 +24334,7 @@ var ts;
24334
24334
}
24335
24335
function getExportsOfModule(moduleSymbol) {
24336
24336
var links = getSymbolLinks(moduleSymbol);
24337
- return links.resolvedExports || (links.resolvedExports = getExportsForModule (moduleSymbol));
24337
+ return links.resolvedExports || (links.resolvedExports = getExportsOfModuleWorker (moduleSymbol));
24338
24338
}
24339
24339
function extendExportSymbols(target, source, lookupTable, exportNode) {
24340
24340
source && source.forEach(function (sourceSymbol, id) {
@@ -24360,10 +24360,10 @@ var ts;
24360
24360
}
24361
24361
});
24362
24362
}
24363
- function getExportsForModule (moduleSymbol) {
24363
+ function getExportsOfModuleWorker (moduleSymbol) {
24364
24364
var visitedSymbols = [];
24365
24365
moduleSymbol = resolveExternalModuleSymbol(moduleSymbol);
24366
- return visit(moduleSymbol) || moduleSymbol.exports ;
24366
+ return visit(moduleSymbol) || emptySymbols ;
24367
24367
function visit(symbol) {
24368
24368
if (!(symbol && symbol.flags & 1952 && !ts.contains(visitedSymbols, symbol))) {
24369
24369
return;
@@ -76539,6 +76539,9 @@ var ts;
76539
76539
AbstractBuilder.prototype.getFileInfos = function () {
76540
76540
return this.fileInfos_doNotAccessDirectly || (this.fileInfos_doNotAccessDirectly = ts.createFileMap());
76541
76541
};
76542
+ AbstractBuilder.prototype.hasFileInfos = function () {
76543
+ return !!this.fileInfos_doNotAccessDirectly;
76544
+ };
76542
76545
AbstractBuilder.prototype.clear = function () {
76543
76546
this.fileInfos_doNotAccessDirectly = undefined;
76544
76547
};
@@ -76567,6 +76570,7 @@ var ts;
76567
76570
this.getFileInfos().forEachValue(function (_path, value) { return action(value); });
76568
76571
};
76569
76572
AbstractBuilder.prototype.emitFile = function (scriptInfo, writeFile) {
76573
+ this.ensureFileInfoIfInProject(scriptInfo);
76570
76574
var fileInfo = this.getFileInfo(scriptInfo.path);
76571
76575
if (!fileInfo) {
76572
76576
return false;
@@ -76591,7 +76595,20 @@ var ts;
76591
76595
_this.project = project;
76592
76596
return _this;
76593
76597
}
76598
+ NonModuleBuilder.prototype.ensureFileInfoIfInProject = function (scriptInfo) {
76599
+ if (this.project.containsScriptInfo(scriptInfo)) {
76600
+ this.getOrCreateFileInfo(scriptInfo.path);
76601
+ }
76602
+ };
76594
76603
NonModuleBuilder.prototype.onProjectUpdateGraph = function () {
76604
+ var _this = this;
76605
+ if (this.hasFileInfos()) {
76606
+ this.forEachFileInfo(function (fileInfo) {
76607
+ if (!_this.project.containsScriptInfo(fileInfo.scriptInfo)) {
76608
+ _this.removeFileInfo(fileInfo.scriptInfo.path);
76609
+ }
76610
+ });
76611
+ }
76595
76612
};
76596
76613
NonModuleBuilder.prototype.getFilesAffectedBy = function (scriptInfo) {
76597
76614
var info = this.getOrCreateFileInfo(scriptInfo.path);
@@ -76680,9 +76697,14 @@ var ts;
76680
76697
}
76681
76698
return [];
76682
76699
};
76683
- ModuleBuilder.prototype.onProjectUpdateGraph = function () {
76700
+ ModuleBuilder.prototype.ensureFileInfoIfInProject = function (_scriptInfo ) {
76684
76701
this.ensureProjectDependencyGraphUpToDate();
76685
76702
};
76703
+ ModuleBuilder.prototype.onProjectUpdateGraph = function () {
76704
+ if (this.hasFileInfos()) {
76705
+ this.ensureProjectDependencyGraphUpToDate();
76706
+ }
76707
+ };
76686
76708
ModuleBuilder.prototype.ensureProjectDependencyGraphUpToDate = function () {
76687
76709
var _this = this;
76688
76710
if (!this.projectVersionForDependencyGraph || this.project.getProjectVersion() !== this.projectVersionForDependencyGraph) {
0 commit comments