UNPKG

ngc-webpack

Version:

A wrapper for the @ngtools/webpack with hooks into the compilation process

14 lines (13 loc) 677 B
import * as ts from 'typescript'; import { TsEmitArguments } from '@angular/compiler-cli'; import { NgcParsedConfiguration } from './config'; import { CliCompilerHost } from './cli-compiler-host'; export declare function createCliContext(config: NgcParsedConfiguration): { compilerHost: CliCompilerHost; createCompilation(compiler: any): any; getResource: (resourcePath: string) => string; createInlineResourcesTransformer(): ts.TransformerFactory<ts.SourceFile>; emitCallback: (emitArgs: TsEmitArguments) => ts.EmitResult; resourceInliningCompilerHost(): any; inlineFlatModuleMetadataBundle(relativeTo: string, flatModuleOutFile: string): void; };