Skip to content

Commit 73cd8aa

Browse files
mfikesswannodette
authored andcommitted
CLJS-1911: Need to bind Node.js require
1 parent 7de568f commit 73cd8aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/cljs/cljs/bootstrap_node.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ function nodeGlobalRequire(file) {
8282
var _module = global.module, _exports = global.exports;
8383
global.module = undefined;
8484
global.exports = undefined;
85+
global.require = require;
8586
vm.runInThisContext(fs.readFileSync(file), file);
8687
global.exports = _exports;
8788
global.module = _module;

0 commit comments

Comments
 (0)