Skip to content
This repository was archived by the owner on Jun 3, 2019. It is now read-only.

Commit e268399

Browse files
author
Declan Elcocks
committed
fix(webpack-hmr): Fixes an issue where webpackHotUpdate is not defined on hard reload of the page
1 parent 5dc8d52 commit e268399

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

internal/webpack/configFactory.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,12 @@ export default function webpackConfigFactory(buildOptions) {
320320
ifDev(() => new webpack.NoEmitOnErrorsPlugin()),
321321

322322
// We need this plugin to enable hot reloading of our client.
323-
ifDevClient(() => new webpack.HotModuleReplacementPlugin()),
323+
ifDevClient(
324+
() =>
325+
new webpack.HotModuleReplacementPlugin({
326+
multiStep: true,
327+
}),
328+
),
324329

325330
// For the production build of the client we need to extract the CSS into
326331
// CSS files.

0 commit comments

Comments
 (0)