From 734d2138e69223477a4e82866f1ad990eae87d8c Mon Sep 17 00:00:00 2001 From: Jordan Guymon Date: Fri, 21 Oct 2016 02:36:58 -0700 Subject: [PATCH] Make watchify ignore node_modules --- lib/build-response.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/build-response.js b/lib/build-response.js index 6e047b1..025aebc 100644 --- a/lib/build-response.js +++ b/lib/build-response.js @@ -18,7 +18,7 @@ module.exports = function send(path, options) { } else if (options.cache === 'dynamic') { var response, resolve; var updatingTimeout; - bundle = watchify(bundle, {poll: true, delay: 0}); + bundle = watchify(bundle, {poll: true, delay: 0, ignoreWatch: true}); bundle.on('update', function () { if (resolve) { clearTimeout(updatingTimeout);