From 15b6ff8c8b113b4b19f11efe02ec2ad039a73dd2 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Fri, 12 Aug 2016 00:43:48 -0400 Subject: [PATCH] don't stop watching if watch api returns no file name --- bundler/bundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundler/bundle.js b/bundler/bundle.js index 9352fe71..e8f37cd0 100644 --- a/bundler/bundle.js +++ b/bundler/bundle.js @@ -101,7 +101,7 @@ module.exports = function(input, output, options) { if (options && options.watch) { fs.watch(process.cwd(), {recursive: true}, function(type, file) { - if (path.resolve(output) !== path.resolve(file)) run() + if (typeof file === "string" && path.resolve(output) !== path.resolve(file)) run() }) } }