Skip to content

Commit

Permalink
add options in chokidar to use polling
Browse files Browse the repository at this point in the history
- fixes sveltejs#109 
- chokidar is a transitive dependency of livereload, so passing an option to chokidar is relatively safe
- the fix was inspired by rollup/rollup#1666 (comment)
- tested on both macOS and Ubuntu 19 (via WSL2)
  • Loading branch information
Chris authored Jan 23, 2020
1 parent 4b6ab60 commit 6789de5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ export default {
production && terser()
],
watch: {
clearScreen: false
clearScreen: false,
chokidar: {
usePolling: true
}
}
};

Expand Down

0 comments on commit 6789de5

Please sign in to comment.