Skip to content

Commit 9648fc4

Browse files
pmvaldalxhub
authored andcommitted
refactor(compiler-cli): Remove .d.ts files transformer in local compilation mode. (#50486)
In local mode we don't make use of .d.ts files for Angular compilation, so their transformation can be ditched. PR Close #50486
1 parent 8506cf4 commit 9648fc4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/compiler-cli/src/ngtsc/core/src/compiler.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,11 @@ export class NgCompiler {
624624
];
625625

626626
const afterDeclarations: ts.TransformerFactory<ts.SourceFile>[] = [];
627-
if (compilation.dtsTransforms !== null) {
627+
628+
// In local compilation mode we don't make use of .d.ts files for Angular compilation, so their
629+
// transformation can be ditched.
630+
if (this.options.compilationMode !== 'experimental-local' &&
631+
compilation.dtsTransforms !== null) {
628632
afterDeclarations.push(declarationTransformFactory(
629633
compilation.dtsTransforms, compilation.reflector, compilation.refEmitter,
630634
importRewriter));

0 commit comments

Comments
 (0)