Skip to content

Commit 63ac35d

Browse files
committed
Use polling for rollup watch mode
Prevent rollup --watch from losing track of file changes when jj edit or jj rebase replaces files in the working directory with new inodes.
1 parent df03ed8 commit 63ac35d

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

rollup.config.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,19 @@ const pageflowScrolled = [
379379
)))
380380
];
381381

382-
export default [
382+
const allConfigs = [
383383
...pageflow,
384384
...pageflowScrolled,
385385
...pageflowPaged,
386386
...pageflowPagedReact
387-
]
387+
];
388+
389+
export default allConfigs.map(config => ({
390+
...config,
391+
watch: {
392+
chokidar: {
393+
usePolling: true,
394+
interval: 500
395+
}
396+
}
397+
}))

0 commit comments

Comments
 (0)