Skip to content

Commit bc1525d

Browse files
authored
Merge pull request webpack#5702 from Aladdin-ADD/patch-2
Fix: incorrect comparing to undefined.
2 parents f0dcde4 + 5227452 commit bc1525d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/convert-argv.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ module.exports = function(yargs, argv, convertOptions) {
166166
options.watchOptions.aggregateTimeout = +argv["watch-aggregate-timeout"];
167167
}
168168

169-
if(typeof argv["watch-poll"] !== undefined) {
169+
if(typeof argv["watch-poll"] !== "undefined") {
170170
options.watchOptions = options.watchOptions || {};
171171
if(argv["watch-poll"] === "true" || argv["watch-poll"] === "")
172172
options.watchOptions.poll = true;

0 commit comments

Comments
 (0)