Skip to content

Commit

Permalink
Try closing the bundle again
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Nov 26, 2023
1 parent 65c18ed commit 491d995
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/watch/watch.ts
Expand Up @@ -214,6 +214,10 @@ export class Task {
}
this.updateWatchedFiles(result!);
}
await result.close();
if (this.closed) {
return;
}
await this.watcher.emitter.emit('event', {
code: 'BUNDLE_END',
duration: Date.now() - start,
Expand Down

0 comments on commit 491d995

Please sign in to comment.