Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
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) {
if (!options.hotClient) {
return Promise.resolve(null);
}

const webpackHotClient = require('webpack-hot-client');

return new Promise((resolve) => {
const client = webpackHotClient(compiler, options.hotClient);
const { server } = client;
Expand Down