diff --git a/src/index.js b/src/index.js index dff48a0..6d3ac77 100644 --- a/src/index.js +++ b/src/index.js @@ -212,6 +212,8 @@ export default function watch ( rollup, options ) { // in case we ever support stdin! process.stdin.on('end', close); + // Activate handler processing on stdin so `close` will be called properly + process.stdin.resume(); return watcher; }