fix(@ngtools/webpack): avoid checking watchMode in environment hook

This commit is contained in:
Charles Lyding 2018-12-04 21:00:38 -05:00 committed by Alex Eagle
parent 51f4e075db
commit ea65cc220b

View File

@ -633,15 +633,12 @@ export class AngularCompilerPlugin {
}
}
// only present for webpack 4.23.0+, assume true otherwise
const watchMode = compiler.watchMode === undefined ? true : compiler.watchMode;
// Create the webpack compiler host.
const webpackCompilerHost = new WebpackCompilerHost(
this._compilerOptions,
this._basePath,
host,
watchMode,
true,
this._options.directTemplateLoading,
);