@@ -65,7 +65,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
65
65
var ts;
66
66
(function (ts) {
67
67
ts.versionMajorMinor = "4.3";
68
- ts.version = "4.3.3 ";
68
+ ts.version = "4.3.4 ";
69
69
var NativeCollections;
70
70
(function (NativeCollections) {
71
71
function tryGetNativeMap() {
@@ -13497,56 +13497,43 @@ var ts;
13497
13497
}
13498
13498
return __assign(__assign({}, writer), { writeTrailingSemicolon: function () {
13499
13499
pendingTrailingSemicolon = true;
13500
- },
13501
- writeLiteral: function (s) {
13500
+ }, writeLiteral: function (s) {
13502
13501
commitPendingTrailingSemicolon();
13503
13502
writer.writeLiteral(s);
13504
- },
13505
- writeStringLiteral: function (s) {
13503
+ }, writeStringLiteral: function (s) {
13506
13504
commitPendingTrailingSemicolon();
13507
13505
writer.writeStringLiteral(s);
13508
- },
13509
- writeSymbol: function (s, sym) {
13506
+ }, writeSymbol: function (s, sym) {
13510
13507
commitPendingTrailingSemicolon();
13511
13508
writer.writeSymbol(s, sym);
13512
- },
13513
- writePunctuation: function (s) {
13509
+ }, writePunctuation: function (s) {
13514
13510
commitPendingTrailingSemicolon();
13515
13511
writer.writePunctuation(s);
13516
- },
13517
- writeKeyword: function (s) {
13512
+ }, writeKeyword: function (s) {
13518
13513
commitPendingTrailingSemicolon();
13519
13514
writer.writeKeyword(s);
13520
- },
13521
- writeOperator: function (s) {
13515
+ }, writeOperator: function (s) {
13522
13516
commitPendingTrailingSemicolon();
13523
13517
writer.writeOperator(s);
13524
- },
13525
- writeParameter: function (s) {
13518
+ }, writeParameter: function (s) {
13526
13519
commitPendingTrailingSemicolon();
13527
13520
writer.writeParameter(s);
13528
- },
13529
- writeSpace: function (s) {
13521
+ }, writeSpace: function (s) {
13530
13522
commitPendingTrailingSemicolon();
13531
13523
writer.writeSpace(s);
13532
- },
13533
- writeProperty: function (s) {
13524
+ }, writeProperty: function (s) {
13534
13525
commitPendingTrailingSemicolon();
13535
13526
writer.writeProperty(s);
13536
- },
13537
- writeComment: function (s) {
13527
+ }, writeComment: function (s) {
13538
13528
commitPendingTrailingSemicolon();
13539
13529
writer.writeComment(s);
13540
- },
13541
- writeLine: function () {
13530
+ }, writeLine: function () {
13542
13531
commitPendingTrailingSemicolon();
13543
13532
writer.writeLine();
13544
- },
13545
- increaseIndent: function () {
13533
+ }, increaseIndent: function () {
13546
13534
commitPendingTrailingSemicolon();
13547
13535
writer.increaseIndent();
13548
- },
13549
- decreaseIndent: function () {
13536
+ }, decreaseIndent: function () {
13550
13537
commitPendingTrailingSemicolon();
13551
13538
writer.decreaseIndent();
13552
13539
} });
@@ -32857,9 +32844,7 @@ var ts;
32857
32844
var preDirectoryResolutionCache = createPerDirectoryResolutionCache(currentDirectory, getCanonicalFileName, directoryToModuleNameMap || (directoryToModuleNameMap = createCacheWithRedirects(options)));
32858
32845
moduleNameToDirectoryMap || (moduleNameToDirectoryMap = createCacheWithRedirects(options));
32859
32846
var packageJsonInfoCache = createPackageJsonInfoCache(currentDirectory, getCanonicalFileName);
32860
- return __assign(__assign(__assign({}, packageJsonInfoCache), preDirectoryResolutionCache), { getOrCreateCacheForModuleName: getOrCreateCacheForModuleName,
32861
- clear: clear,
32862
- update: update, getPackageJsonInfoCache: function () { return packageJsonInfoCache; } });
32847
+ return __assign(__assign(__assign({}, packageJsonInfoCache), preDirectoryResolutionCache), { getOrCreateCacheForModuleName: getOrCreateCacheForModuleName, clear: clear, update: update, getPackageJsonInfoCache: function () { return packageJsonInfoCache; } });
32863
32848
function clear() {
32864
32849
preDirectoryResolutionCache.clear();
32865
32850
moduleNameToDirectoryMap.clear();
@@ -96307,7 +96292,7 @@ var ts;
96307
96292
},
96308
96293
emit: function (targetSourceFile, writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers) {
96309
96294
if (targetSourceFile || emitOnlyDtsFiles) {
96310
- return withProgramOrUndefined(function (program) { return program.emit(targetSourceFile, writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers); });
96295
+ return withProgramOrUndefined(function (program) { var _a, _b; return program.emit(targetSourceFile, writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers || ((_b = (_a = state.host).getCustomTransformers) === null || _b === void 0 ? void 0 : _b.call(_a, project)) ); });
96311
96296
}
96312
96297
executeSteps(BuildStep.SemanticDiagnostics, cancellationToken);
96313
96298
if (step === BuildStep.EmitBuildInfo) {
@@ -96389,13 +96374,14 @@ var ts;
96389
96374
}
96390
96375
function emit(writeFileCallback, cancellationToken, customTransformers) {
96391
96376
var _a;
96377
+ var _b, _c;
96392
96378
ts.Debug.assertIsDefined(program);
96393
96379
ts.Debug.assert(step === BuildStep.Emit);
96394
96380
program.backupState();
96395
96381
var declDiagnostics;
96396
96382
var reportDeclarationDiagnostics = function (d) { return (declDiagnostics || (declDiagnostics = [])).push(d); };
96397
96383
var outputFiles = [];
96398
- var emitResult = ts.emitFilesAndReportErrors(program, reportDeclarationDiagnostics, undefined, undefined, function (name, text, writeByteOrderMark) { return outputFiles.push({ name: name, text: text, writeByteOrderMark: writeByteOrderMark }); }, cancellationToken, false, customTransformers).emitResult;
96384
+ var emitResult = ts.emitFilesAndReportErrors(program, reportDeclarationDiagnostics, undefined, undefined, function (name, text, writeByteOrderMark) { return outputFiles.push({ name: name, text: text, writeByteOrderMark: writeByteOrderMark }); }, cancellationToken, false, customTransformers || ((_c = (_b = state.host).getCustomTransformers) === null || _c === void 0 ? void 0 : _c.call(_b, project)) ).emitResult;
96399
96385
if (declDiagnostics) {
96400
96386
program.restoreState();
96401
96387
(_a = buildErrors(state, projectPath, program, config, declDiagnostics, BuildResultFlags.DeclarationEmitErrors, "Declaration file"), buildResult = _a.buildResult, step = _a.step);
@@ -96472,6 +96458,7 @@ var ts;
96472
96458
return emitDiagnostics;
96473
96459
}
96474
96460
function emitBundle(writeFileCallback, customTransformers) {
96461
+ var _a, _b;
96475
96462
ts.Debug.assert(kind === InvalidatedProjectKind.UpdateBundle);
96476
96463
if (state.options.dry) {
96477
96464
reportStatus(state, ts.Diagnostics.A_non_dry_build_would_update_output_of_project_0, project);
@@ -96486,7 +96473,7 @@ var ts;
96486
96473
var outputFiles = ts.emitUsingBuildInfo(config, compilerHost, function (ref) {
96487
96474
var refName = resolveProjectName(state, ref.path);
96488
96475
return parseConfigFile(state, refName, toResolvedConfigFilePath(state, refName));
96489
- }, customTransformers);
96476
+ }, customTransformers || ((_b = (_a = state.host).getCustomTransformers) === null || _b === void 0 ? void 0 : _b.call(_a, project)) );
96490
96477
if (ts.isString(outputFiles)) {
96491
96478
reportStatus(state, ts.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1, project, relName(state, outputFiles));
96492
96479
step = BuildStep.BuildInvalidatedProjectOfBundle;
0 commit comments