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 f824c72 commit 3f5a60aCopy full SHA for 3f5a60a
src/main/cljs/cljs/bootstrap_nodejs.js
@@ -112,9 +112,12 @@ function nodeGlobalRequire(file) {
112
_exports = global.exports,
113
exportedRequire = false;
114
115
+ // to circumvent Node.js environment detection in bundled libraries
116
global.module = undefined;
117
global.exports = undefined;
118
119
+ // to allow requires of Node.js libraries (i.e. platform libs) that
120
+ // couldn't be bundled for some reason
121
if(global.require == undefined) {
122
exportedRequire = true;
123
global.require = require;
0 commit comments