-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Feature Request: Create an alternative to require function so it doesnt cache. #46
Comments
What difference it would make? I am thinking about somethin like the require.hot from |
Anyway, I think my code wouldnt be reloaded because it would get the function from the cached module, not my new one. But I will try. |
pasviegas: you're right, even if you wrap the code in a function it will still be cached. And felixge is indeed working on a require.hot that addresses this very issue. As far as I know his code is still very beta at the moment! |
But it is coming... |
Hehe, yeah, thats why I'm posting here, so ( i hope) this feature goes into the master branch. |
Voting for this too. |
yes "require.hot" will be excellent |
very good feature :) |
http://github.com/shimondoodkin/node-hot-reload - it is not restart - it is alternative require function. it is more like erlang behavior |
liveedit and or process restart. closing. |
ry: |
Can someone specify what the reason for closing this issue was? |
Require function always cache, so it makes hot code swap very lousy. Would be interesting to have an alternative to this behavior so changes that you make on the code are deployed instantly.
The text was updated successfully, but these errors were encountered: