rollup-watch icon indicating copy to clipboard operation
rollup-watch copied to clipboard

Regression: Rebuilds only once in v4.0.0. Works in v3.2.2

Open btakita opened this issue 8 years ago • 5 comments

Upon upgrading to v4.0.0, my watch scripts only fire on the first change.

Downgrading to v3.2.2 fixes the issue. I don't know the cause of the issue & I will further investigate if nobody else has already done so.

useChokidar is true in this case.

btakita avatar Jun 10 '17 08:06 btakita

Adding the rollup option {watch: {useChokidar: false}} fixes the issue

btakita avatar Jun 10 '17 09:06 btakita

I suspect this is because chokidar didn't get used at all prior to version 4, due to a silly bug. Are you able to create a repo reproducing the issue, so we can investigate further? Thanks

Rich-Harris avatar Jul 13 '17 01:07 Rich-Harris

This issue is related to: https://github.com/paulmillr/chokidar/issues/556

btakita avatar Aug 30 '17 14:08 btakita

I'm trying to pass in the config:

watch: { chokidar: {usePolling: true} }

However, inputOptions from function mergeOptions in bin/rollup does not include the watch member.

btakita avatar Aug 30 '17 14:08 btakita

This repo is deprecated — rollup.watch is now part of core. If this is still an issue with the latest Rollup version, could you open a ticket over there please? thanks

Rich-Harris avatar Aug 30 '17 14:08 Rich-Harris