We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bf8fba commit da64e41Copy full SHA for da64e41
1 file changed
src/physics/matter-js/lib/core/Common.js
@@ -548,6 +548,10 @@ module.exports = Common;
548
*/
549
Common._requireGlobal = function(globalName, moduleName) {
550
var obj = (typeof window !== 'undefined' ? window[globalName] : typeof global !== 'undefined' ? global[globalName] : null);
551
- return obj || require(moduleName);
+
552
+ // Breaks webpack :(
553
+ // return obj || require(moduleName);
554
555
+ return obj;
556
};
557
})();
0 commit comments