Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 46dfb2b

Browse files
committed
fix-next: properly instantiate HMR plugin
1 parent 9896d76 commit 46dfb2b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

templates/webpack.angular.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ module.exports = env => {
267267
}
268268

269269
if (hmr) {
270-
config.plugins.push(new HotModuleReplacementPlugin());
270+
config.plugins.push(new webpack.HotModuleReplacementPlugin());
271271
}
272272

273273
return config;

templates/webpack.javascript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ module.exports = env => {
229229
}
230230

231231
if (hmr) {
232-
config.plugins.push(new HotModuleReplacementPlugin());
232+
config.plugins.push(new webpack.HotModuleReplacementPlugin());
233233
}
234234

235235

templates/webpack.typescript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ module.exports = env => {
239239
}
240240

241241
if (hmr) {
242-
config.plugins.push(new HotModuleReplacementPlugin());
242+
config.plugins.push(new webpack.HotModuleReplacementPlugin());
243243
}
244244

245245

0 commit comments

Comments
 (0)