We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73cd8aa commit 35bcfceCopy full SHA for 35bcfce
src/main/cljs/cljs/bootstrap_node.js
@@ -49,7 +49,7 @@ var CLJS_ROOT = ".";
49
* The goog namespace in the global scope.
50
*/
51
global.goog = {};
52
-
+global.require = require;
53
54
/**
55
* Imports a script using Node's require() API.
@@ -82,7 +82,6 @@ function nodeGlobalRequire(file) {
82
var _module = global.module, _exports = global.exports;
83
global.module = undefined;
84
global.exports = undefined;
85
- global.require = require;
86
vm.runInThisContext(fs.readFileSync(file), file);
87
global.exports = _exports;
88
global.module = _module;
0 commit comments