Skip to content

Commit 3f9db07

Browse files
author
Nathan Reid
committed
always delay file refresh by at least 100 ms
1 parent 47188fc commit 3f9db07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vue-component/plugin/vue-compiler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,8 @@ class ComponentWatcher {
342342
this.refresh()
343343
}
344344
}, 100, {
345-
leading: true,
346-
trailing: false,
345+
leading: false,
346+
trailing: true,
347347
}))
348348
this.watcher.on('error', (error) => console.error(error))
349349
}

0 commit comments

Comments
 (0)