Skip to content

Commit ea65cc2

Browse files
clydinalexeagle
authored andcommitted
fix(@ngtools/webpack): avoid checking watchMode in environment hook
1 parent 51f4e07 commit ea65cc2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/ngtools/webpack/src/angular_compiler_plugin.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -633,15 +633,12 @@ export class AngularCompilerPlugin {
633633
}
634634
}
635635

636-
// only present for webpack 4.23.0+, assume true otherwise
637-
const watchMode = compiler.watchMode === undefined ? true : compiler.watchMode;
638-
639636
// Create the webpack compiler host.
640637
const webpackCompilerHost = new WebpackCompilerHost(
641638
this._compilerOptions,
642639
this._basePath,
643640
host,
644-
watchMode,
641+
true,
645642
this._options.directTemplateLoading,
646643
);
647644

0 commit comments

Comments
 (0)