From c393f2881d835da2542384827ff1837284ef3c11 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Wed, 11 Apr 2018 22:35:20 +0800 Subject: [PATCH] fix: webpackHotUpdate is not defined in HMR --- lib/builder/webpack/client.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/builder/webpack/client.js b/lib/builder/webpack/client.js index f5fd39a682..87b581f8fd 100644 --- a/lib/builder/webpack/client.js +++ b/lib/builder/webpack/client.js @@ -51,7 +51,9 @@ export default class WebpackClientConfig extends WebpackBaseConfig { ) if (this.options.dev) { - plugins.push(new webpack.HotModuleReplacementPlugin()) + plugins.push(new webpack.HotModuleReplacementPlugin({ + multiStep: true + })) } // Chunks size limit