diff --git a/lib/repl.js b/lib/repl.js index 9c27e4e911..d0fefde854 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -24,6 +24,9 @@ function cwdRequire (id) { } return require(id); } +Object.keys(require).forEach(function (k) { + cwdRequire[k] = require[k]; +}); function setScope (self) { scope = {};