Skip to content

Commit

Permalink
fix(box): set property awaitWriteFinish for chokidar filewatcher (#4633)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang authored Feb 3, 2021
1 parent 5754eb7 commit 09334c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/box/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ class Box extends EventEmitter {
super();

this.options = Object.assign({
persistent: true
persistent: true,
awaitWriteFinish: {
stabilityThreshold: 200
}
}, options);

if (!base.endsWith(sep)) {
Expand Down

0 comments on commit 09334c0

Please sign in to comment.