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 2f8a152 commit ba205f0Copy full SHA for ba205f0
src/main/cljs/cljs/bootstrap_node.js
@@ -82,6 +82,8 @@ function nodeGlobalRequire(file) {
82
var _module = global.module, _exports = global.exports;
83
global.module = undefined;
84
global.exports = undefined;
85
+ global.__dirname = file.substring(0, file.lastIndexOf('/'));
86
+ global.__filename = file;
87
vm.runInThisContext(fs.readFileSync(file), file);
88
global.exports = _exports;
89
global.module = _module;
0 commit comments