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:

committed by
Andrew Kushnir

parent
388578fec9
commit
2b64031ddc
@ -184,15 +184,10 @@ export function compile({allDepsCompiledWithBazel = true, compilerOpts, tsHost,
|
||||
}
|
||||
|
||||
// Detect from compilerOpts whether the entrypoint is being invoked in Ivy mode.
|
||||
const isInIvyMode = compilerOpts.enableIvy === 'ngtsc' || compilerOpts.enableIvy === 'tsc';
|
||||
const isInIvyMode = compilerOpts.enableIvy === 'ngtsc';
|
||||
|
||||
// Disable downleveling and Closure annotation if in Ivy mode.
|
||||
if (isInIvyMode) {
|
||||
// In pass-through mode for TypeScript, we want to turn off decorator transpilation entirely.
|
||||
// This causes ngc to be have exactly like tsc.
|
||||
if (compilerOpts.enableIvy === 'tsc') {
|
||||
compilerOpts.annotateForClosureCompiler = false;
|
||||
}
|
||||
compilerOpts.annotationsAs = 'decorators';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user