browserify / watchify

watch mode for browserify builds
Other
1.79k stars 181 forks source link

OSX: 'update' event only fires once per file #79

Closed barneycarroll closed 10 years ago

barneycarroll commented 10 years ago

The OSX clause is just a hunch, based on the fact that file system events tend to be quirkier here than in other environments.

I initially believed this to be an intermittent side-effect of passing too high a debounce threshold (getting multiple events fired for one originating operation), but removing this doesn't change the behaviour: watchify will only register one change per file. After the first save, further modifications are not picked up.

I've got a very convoluted set up at the moment where it's hard to see all the dependencies at a glance (using gulp with a browserify task that forks between browserify and watchify depending on watch condition), but I'll try and reduce the test case to its bare bones for analysis.

barneycarroll commented 10 years ago

Can no longer reproduce.