From 875effb2cb64274f9e494fa98b2704b24492e2ee Mon Sep 17 00:00:00 2001 From: Lucas Wiener Date: Fri, 29 Jul 2016 11:31:52 +0200 Subject: [PATCH] Also calling watchFile on collect, so that initially cached files get watched. --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 0753b9f..50eb7bf 100644 --- a/index.js +++ b/index.js @@ -39,6 +39,7 @@ function watchify (b, opts) { function collect () { b.pipeline.get('deps').push(through.obj(function(row, enc, next) { var file = row.expose ? b._expose[row.id] : row.file; + watchFile(file); cache[file] = { source: row.source, deps: xtend(row.deps)