mattdesl / budo

:clapper: a dev server for rapid prototyping
MIT License
2.18k stars 106 forks source link

occasional stale bundles #71

Open mattdesl opened 9 years ago

mattdesl commented 9 years ago

Some users have reported the occasional stale bundle on reload. Will have to investigate.

One thing that could be the culprit is the debounce in watchify-middleware. Might be better to use watchify's delay option.

mattdesl commented 9 years ago

In budo@5.1.0 the --version flag now displays more information about the browserify and watchify versions, which can also affect an issue like this. :smile:

e.g.

$ budo --version
budo v5.1.0
browserify v11.2.0
watchify v3.4.0
mattdesl commented 9 years ago

I added some tests to watchify-middleware to try and figure this out. Here's what I think is happening:

I'm not sure a clean fix for this. It happens very rarely and probably only through manual reload (as opposed to --live reload). Maybe adding a slight delay to the requests would further minimize the chance of it happening.