Skip to content

Commit 7c44a64

Browse files
committed
feat(@ngtools/webpack): add forkTypeChecker option
1 parent 0b3e481 commit 7c44a64

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/@ngtools/webpack/src/angular_compiler_plugin.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export interface AngularCompilerPluginOptions {
6161
mainPath?: string;
6262
skipCodeGeneration?: boolean;
6363
hostReplacementPaths?: { [path: string]: string };
64+
forkTypeChecker?: boolean;
6465
// TODO: remove singleFileIncludes for 2.0, this is just to support old projects that did not
6566
// include 'polyfills.ts' in `tsconfig.spec.json'.
6667
singleFileIncludes?: string[];
@@ -242,6 +243,11 @@ export class AngularCompilerPlugin {
242243
options.missingTranslation as 'error' | 'warning' | 'ignore';
243244
}
244245

246+
// Process forked type checker options.
247+
if (options.forkTypeChecker !== undefined) {
248+
this._forkTypeChecker = options.forkTypeChecker;
249+
}
250+
245251
// Create the webpack compiler host.
246252
const webpackCompilerHost = new WebpackCompilerHost(this._compilerOptions, this._basePath);
247253
webpackCompilerHost.enableCaching();

0 commit comments

Comments
 (0)