With detect-globals, watching doesn't work
Whether using --detect-globals via the command line or via the local library, the code is bundled once and then the process exits. As far as I can tell, the 'update' event doesn't fire. This is using 0.7.2 with browserify 3.44.0.
This seems similar to #33, as the 'update' event never fires and I'm on a PC.
The full command that I'm using in git-bash, in case it matters:
watchify --detect-globals false --external async test/all-tests.js -o test/all-tests-built.js
If I take out --detect-globals false it watches as expected.
Fixed in 0.8.2. watchify was only registering listeners if there was a "transform" event. It's surprising that it worked at all, even sometimes.
The behavior is now a bit different, though not quite right. Only the first file change after running the command is caught. After that, any other changes are ignored. Maybe it's a Windows thing? I don't have a Mac to try 0.8.2 out on to see if there's a difference.
Ah, current bug behavior is captured in #49, so I guess it isn't Windows-specific.