You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function emit(targetSourceFile, writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers) {
106518
+
var restorePendingEmitOnHandlingNoEmitSuccess = false;
106519
+
var savedAffectedFilesPendingEmit;
106520
+
var savedAffectedFilesPendingEmitKind;
106521
+
var savedAffectedFilesPendingEmitIndex;
106522
+
// Backup and restore affected pendings emit state for non emit Builder if noEmitOnError is enabled and emitBuildInfo could be written in case there are errors
106523
+
// This ensures pending files to emit is updated in tsbuildinfo
106524
+
// Note that when there are no errors, emit proceeds as if everything is emitted as it is callers reponsibility to write the files to disk if at all (because its builder that doesnt track files to emit)
106525
+
if (kind !== BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram &&
// Add file to affected file pending emit to handle for later emit time
106556
-
if (kind === BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram) {
106585
+
// Apart for emit builder do this for tsbuildinfo, do this for non emit builder when noEmit is set as tsbuildinfo is written and reused between emitters
106586
+
if (kind === BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram || state.compilerOptions.noEmit || state.compilerOptions.noEmitOnError) {
106557
106587
addToAffectedFilesPendingEmit(state, affected.resolvedPath, 1 /* Full */);
106558
106588
}
106559
106589
// Get diagnostics for the affected file if its not ignored
0 commit comments