mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-15 18:13:38 +08:00
fix(@ngtools/webpack): avoid checking watchMode in environment hook
This commit is contained in:
parent
51f4e075db
commit
ea65cc220b
@ -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,
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user