UNPKG

@ngtools/webpack

Version:

Webpack plugin that AoT compiles your Angular components and modules.

38 lines (37 loc) 1.59 kB
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import * as ts from 'typescript'; import type { Compiler } from 'webpack'; import { InputFileSystem } from './ivy/system'; type ResolverWithOptions = ReturnType<Compiler['resolverFactory']['get']>; export declare class NgccProcessor { private readonly compilerNgcc; private readonly propertiesToConsider; private readonly compilationWarnings; private readonly compilationErrors; private readonly basePath; private readonly tsConfigPath; private readonly inputFileSystem; private readonly resolver; private _processedModules; private _logger; private _nodeModulesDirectory; constructor(compilerNgcc: typeof import('@angular/compiler-cli/ngcc'), propertiesToConsider: string[], compilationWarnings: (Error | string)[], compilationErrors: (Error | string)[], basePath: string, tsConfigPath: string, inputFileSystem: InputFileSystem, resolver: ResolverWithOptions); /** Process the entire node modules tree. */ process(): void; /** Process a module and its dependencies. */ processModule(moduleName: string, resolvedModule: ts.ResolvedModule | ts.ResolvedTypeReferenceDirective): void; invalidate(fileName: string): void; /** * Try resolve a package.json file from the resolved .d.ts file. */ private tryResolvePackage; private findNodeModulesDirectory; private findPackageManagerLockFile; } export {};