@ngtools/webpack
Version:
Webpack plugin that AoT compiles your Angular components and modules.
21 lines (20 loc) • 685 B
TypeScript
/**
* @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 { Compiler } from 'webpack';
export type InputFileSystem = Compiler['inputFileSystem'];
export interface InputFileSystemSync extends InputFileSystem {
readFileSync(path: string): Buffer;
statSync(path: string): {
size: number;
mtime: Date;
isDirectory(): boolean;
isFile(): boolean;
};
}
export declare function createWebpackSystem(input: InputFileSystemSync, currentDirectory: string): ts.System;