From 06bfcb2be3e9569da347d4f4bbb50dc99c4a73fb Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Thu, 5 May 2022 21:48:50 +0300 Subject: [PATCH] refactor(ngcc): remove unused dependencies (#45833) Remove some unused dependencies from `ngcc` source code. PR Close #45833 --- .../compiler-cli/ngcc/src/execution/create_compile_function.ts | 2 +- packages/compiler-cli/ngcc/src/packages/source_file_cache.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/compiler-cli/ngcc/src/execution/create_compile_function.ts b/packages/compiler-cli/ngcc/src/execution/create_compile_function.ts index b522b477aab..cbe2162b5b4 100644 --- a/packages/compiler-cli/ngcc/src/execution/create_compile_function.ts +++ b/packages/compiler-cli/ngcc/src/execution/create_compile_function.ts @@ -12,7 +12,7 @@ import {replaceTsWithNgInErrors} from '../../../src/ngtsc/diagnostics'; import {FileSystem} from '../../../src/ngtsc/file_system'; import {Logger} from '../../../src/ngtsc/logging'; import {ParsedConfiguration} from '../../../src/perform_compile'; -import {EntryPointPackageJson, getEntryPointFormat} from '../packages/entry_point'; +import {getEntryPointFormat} from '../packages/entry_point'; import {makeEntryPointBundle} from '../packages/entry_point_bundle'; import {createModuleResolutionCache, SharedFileCache} from '../packages/source_file_cache'; import {Transformer} from '../packages/transformer'; diff --git a/packages/compiler-cli/ngcc/src/packages/source_file_cache.ts b/packages/compiler-cli/ngcc/src/packages/source_file_cache.ts index b04bcefe6ea..c8cdb73b136 100644 --- a/packages/compiler-cli/ngcc/src/packages/source_file_cache.ts +++ b/packages/compiler-cli/ngcc/src/packages/source_file_cache.ts @@ -9,8 +9,6 @@ import ts from 'typescript'; import {AbsoluteFsPath, ReadonlyFileSystem} from '../../../src/ngtsc/file_system'; -import {adjustElementAccessExports} from './adjust_cjs_umd_exports'; - /** * A cache that holds on to source files that can be shared for processing all entry-points in a * single invocation of ngcc. In particular, the following files are shared across all entry-points