shimondoodkin/node-hot-reload — Issue #1: better hot reload code
Author: shimondoodkin
Created: 2011-12-25 02:45:42+00:00
State: open

var f=require.resolve('./functions.js');if(require.cache[f]){if(require.cache[f].exports.unload) require.cache[f].exports.unload()}delete require.cache[f];f=require(f);
also i suggest in this code unload event for a module