diff --git a/lib/client.js b/lib/client.js index 4e2a665..909fea0 100644 --- a/lib/client.js +++ b/lib/client.js @@ -8,7 +8,6 @@ The above copyright notice and this permission notice shall be included in all copies or substantial portions of this Source Code Form. */ -const webpackHotClient = require('webpack-hot-client'); module.exports = { getClient(compiler, options) { @@ -16,6 +15,8 @@ module.exports = { return Promise.resolve(null); } + const webpackHotClient = require('webpack-hot-client'); + return new Promise((resolve) => { const client = webpackHotClient(compiler, options.hotClient); const { server } = client;