Skip to content

Commit

Permalink
fix(@ngtools/webpack): avoid checking watchMode in environment hook
Browse files Browse the repository at this point in the history
  • Loading branch information
clydin authored and alexeagle committed Dec 6, 2018
1 parent 51f4e07 commit ea65cc2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/ngtools/webpack/src/angular_compiler_plugin.ts
Expand Up @@ -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,
);

Expand Down

0 comments on commit ea65cc2

Please sign in to comment.