-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it watch #63
Make it watch #63
Conversation
…as no longer needed.
… was causing by issues in browserify related to: browserify/browserify#1030
Watchify definitely needs a default, and we may want to force it to false in non dev mode. |
Totally agree. It should never be on in prod. Philip Roberts
|
@latentflip im working on solving a similar problem myself. I want to keep a cache of the bundle in development mode, so i dont have to wait forever for my page to reload. However, i was worried about the race condition that happens when you have a cached bundle and something is updated in the js/ folder, but before the bundle can be rebuilt and saved as the bundled cache the client requests the bundle. Does this mean the client will get an old version of the bundle? |
@faiq we solve a similar problem in moonboots-hapi with a little function @latentflip wrote https://github.com/wraithgar/moonboots_hapi/blob/master/lib/lock-async-function.js |
@wraithgar can you please point me to where you used it! I'm really confused 😞 on how I should be using it. |
Now that I look at your comment again it seems that doesn't solve your specific problem maybe |
…it doesnt error and coverage
@latentflip This is great! And I really want it to land to save me from long build times in developmentMode. So I added a commit to address the following:
Anything else that needs to get discussed for this? Should we go ahead and update to v8 of browserify now that its out? |
@latentflip, how did you solve the concerns I posted above, I would really love some guidance. :D |
I pulled this branch into my current project using It looks like the result of this bug with I'm gonna come up with a failing test and then see if one of the workarounds in that issue will fix it. |
I made a failing test where if you get I tried updating browserify and watchify to see if any of the workarounds in the issue above worked, but none of them did. Seems like the only way watchify could be included is if we detect both Keeping an eye on the related watchify issues: |
Depends on #62 and probably needs tests or something.