emit errors and warnings, albeit clumsily

This commit is contained in:
Rich Harris
2018-08-29 13:26:31 -04:00
parent f8d742bdd0
commit 458be49b35
2 changed files with 48 additions and 25 deletions

View File

@@ -256,8 +256,6 @@ class Watcher extends EventEmitter {
}
});
let first = true;
this.watch(compilers.client, {
name: 'client',
@@ -426,7 +424,7 @@ function noop() {}
function watch_dir(
dir: string,
filter: ({ path, stats }: { path: string, stats: fs.CompileResult }) => boolean,
filter: ({ path, stats }: { path: string, stats: fs.Stats }) => boolean,
callback: () => void
) {
let watch;