Skip to content

Commit c5e3a8b

Browse files
clydinalan-agius4
authored andcommitted
refactor(@ngtools/webpack): remove deep import into @angular/compiler-cli
A deep import was previously used to access the `NgtscProgram` class. However, this class is now accessible as a standard import from the main module.
1 parent 19eb5cb commit c5e3a8b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/ngtools/webpack/src/ivy/plugin.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import { CompilerHost, CompilerOptions, readConfiguration } from '@angular/compiler-cli';
10-
import { NgtscProgram } from '@angular/compiler-cli/src/ngtsc/program';
9+
import {
10+
CompilerHost,
11+
CompilerOptions,
12+
NgtscProgram,
13+
readConfiguration,
14+
} from '@angular/compiler-cli';
1115
import { createHash } from 'crypto';
1216
import * as ts from 'typescript';
1317
import type { Compilation, Compiler, Module, NormalModule } from 'webpack';

0 commit comments

Comments
 (0)