Skip to content
Merged
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion lib/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ class Server {
// https://github.com/webpack/watchpack/blob/master/lib/DirectoryWatcher.js#L49
// this isn't an elegant solution, but we'll improve it in the future
// eslint-disable-next-line no-undefined
const usePolling = watchOptions.poll ? true : undefined;
const usePolling = !!watchOptions.poll || watchOptions.usePolling;
Comment thread
anshumanv marked this conversation as resolved.
Outdated
const interval =
typeof watchOptions.poll === 'number'
? watchOptions.poll
Expand Down