watchify icon indicating copy to clipboard operation
watchify copied to clipboard

With detect-globals, watching doesn't work

Open aelr opened this issue 12 years ago • 3 comments

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.

aelr avatar Apr 20 '14 01:04 aelr

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.

ghost avatar Apr 23 '14 00:04 ghost

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.

aelr avatar Apr 26 '14 23:04 aelr

Ah, current bug behavior is captured in #49, so I guess it isn't Windows-specific.

aelr avatar May 02 '14 18:05 aelr