refactor(ivy): remove the tsc passthrough option (#32219)

This option makes ngc behave as tsc, and was originally implemented before
ngtsc existed. It was designed so we could build JIT-only versions of
Angular packages to begin testing Ivy early, and is not used at all in our
current setup.

PR Close #32219
This commit is contained in:
Alex Rickabaugh
2019-08-20 10:54:02 -07:00
committed by Andrew Kushnir
parent 388578fec9
commit 2b64031ddc
5 changed files with 5 additions and 125 deletions
@@ -27,7 +27,6 @@ import {getAngularEmitterTransformFactory} from './node_emitter_transform';
import {PartialModuleMetadataTransformer} from './r3_metadata_transform';
import {StripDecoratorsMetadataTransformer, getDecoratorStripTransformerFactory} from './r3_strip_decorators';
import {getAngularClassTransformerFactory} from './r3_transform';
import {TscPassThroughProgram} from './tsc_pass_through';
import {DTS, GENERATED_FILES, StructureIsReused, TS, createMessageDiagnostic, isInRootDir, ngToTsDiagnostic, tsStructureIsReused, userError} from './util';
@@ -900,10 +899,9 @@ export function createProgram({rootNames, options, host, oldProgram}: {
}): Program {
if (options.enableIvy === true) {
return new NgtscProgram(rootNames, options, host, oldProgram as NgtscProgram);
} else if (options.enableIvy === 'tsc') {
return new TscPassThroughProgram(rootNames, options, host, oldProgram);
} else {
return new AngularCompilerProgram(rootNames, options, host, oldProgram);
}
return new AngularCompilerProgram(rootNames, options, host, oldProgram);
}
// Compute the AotCompiler options