Commit 3e83764
authored
fix: emit multiple events if multiple files are created at once for kqueue watcher (#54)
This PR fixes this bug found in Rolldown's test case.
https://github.com/rolldown/rolldown/blob/6d37cd0ffd373aa3bd41f83e0591a8c2ab5a97d1/packages/rolldown/tests/watch/watch.test.ts#L72-L79
When multiple file creation was found at once, only the event for the
first file was emitted. With this PR, the event for the non-first files
are emitted.1 parent de0a4b5 commit 3e83764
1 file changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
279 | 280 | | |
280 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
281 | 285 | | |
282 | 286 | | |
283 | 287 | | |
| |||
0 commit comments