From 6789de5975283de8dc7e14c417994a59203c8a57 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 24 Jan 2020 01:44:40 +0800 Subject: [PATCH] add options in chokidar to use polling - fixes #109 - chokidar is a transitive dependency of livereload, so passing an option to chokidar is relatively safe - the fix was inspired by https://github.com/rollup/rollup/issues/1666#issuecomment-536227450 - tested on both macOS and Ubuntu 19 (via WSL2) --- rollup.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index eae4c0be..b65a46a1 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -49,7 +49,10 @@ export default { production && terser() ], watch: { - clearScreen: false + clearScreen: false, + chokidar: { + usePolling: true + } } };