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.
This commit is contained in:
Charles Lyding 2021-09-17 14:35:45 -04:00 committed by Alan Agius
parent 19eb5cb425
commit c5e3a8b303

View File

@ -6,8 +6,12 @@
* found in the LICENSE file at https://angular.io/license * found in the LICENSE file at https://angular.io/license
*/ */
import { CompilerHost, CompilerOptions, readConfiguration } from '@angular/compiler-cli'; import {
import { NgtscProgram } from '@angular/compiler-cli/src/ngtsc/program'; CompilerHost,
CompilerOptions,
NgtscProgram,
readConfiguration,
} from '@angular/compiler-cli';
import { createHash } from 'crypto'; import { createHash } from 'crypto';
import * as ts from 'typescript'; import * as ts from 'typescript';
import type { Compilation, Compiler, Module, NormalModule } from 'webpack'; import type { Compilation, Compiler, Module, NormalModule } from 'webpack';