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

Commit 2c80f0a

Browse files
authored
Merge pull request #566 from declanelcocks/fix/webpack-hmr
Fix webpack v4 issue where webpackHotUpdate is not defined on hard reload
2 parents 5dc8d52 + e268399 commit 2c80f0a

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)