Right now changes in bar will not be picked up when I source foo, that requires, it a second time.
Therefore it would be useful to run: Object.keys(require.cache).forEach(function (k) { delete require.cache[k] }) before I pipe file content into the repl to ensure that its dependencies get refreshed as well.
Right now changes in
bar
will not be picked up when I sourcefoo
, that requires, it a second time.Therefore it would be useful to run:
Object.keys(require.cache).forEach(function (k) { delete require.cache[k] })
before I pipe file content into the repl to ensure that its dependencies get refreshed as well.