Skip to content

Commit

Permalink
feat(@ngtools/webpack): add forkTypeChecker option
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed Feb 28, 2018
1 parent 7e3dbf6 commit 5474750
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/@ngtools/webpack/src/angular_compiler_plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export interface AngularCompilerPluginOptions {
mainPath?: string;
skipCodeGeneration?: boolean;
hostReplacementPaths?: { [path: string]: string };
forkTypeChecker?: boolean;
// TODO: remove singleFileIncludes for 2.0, this is just to support old projects that did not
// include 'polyfills.ts' in `tsconfig.spec.json'.
singleFileIncludes?: string[];
Expand Down Expand Up @@ -242,6 +243,11 @@ export class AngularCompilerPlugin {
options.missingTranslation as 'error' | 'warning' | 'ignore';
}

// Process forked type checker options.
if (options.forkTypeChecker !== undefined) {
this._forkTypeChecker = options.forkTypeChecker;
}

// Create the webpack compiler host.
const webpackCompilerHost = new WebpackCompilerHost(this._compilerOptions, this._basePath);
webpackCompilerHost.enableCaching();
Expand Down

0 comments on commit 5474750

Please sign in to comment.