Skip to content

Commit 281ae46

Browse files
clydinalexeagle
authored andcommitted
fix(@ngtools/webpack): avoid checking watchMode in environment hook
1 parent 13fbc65 commit 281ae46

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
@@ -632,15 +632,12 @@ export class AngularCompilerPlugin {
632632
}
633633
}
634634

635-
// only present for webpack 4.23.0+, assume true otherwise
636-
const watchMode = compiler.watchMode === undefined ? true : compiler.watchMode;
637-
638635
// Create the webpack compiler host.
639636
const webpackCompilerHost = new WebpackCompilerHost(
640637
this._compilerOptions,
641638
this._basePath,
642639
host,
643-
watchMode,
640+
true,
644641
);
645642

646643
// Create and set a new WebpackResourceLoader in AOT

0 commit comments

Comments
 (0)