Skip to content

Commit

Permalink
watch mode always logs errors
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloSzx committed Nov 11, 2021
1 parent abff05c commit 2939cca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-rockets-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'bob-esbuild': patch
---

watch mode always logs errors
4 changes: 4 additions & 0 deletions packages/bob/src/rollup/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ export async function watchRollup(options: WatchRollupOptions = {}): Promise<{
debug(`JS watcher for ${cwd} started`);
break;
}
case 'ERROR': {
error(event.error);
break;
}
}
});

Expand Down

0 comments on commit 2939cca

Please sign in to comment.