Skip to content

Commit da64e41

Browse files
committed
Fixed Matter require call freaking out webpack
1 parent 5bf8fba commit da64e41

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/physics/matter-js/lib/core/Common.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,10 @@ module.exports = Common;
548548
*/
549549
Common._requireGlobal = function(globalName, moduleName) {
550550
var obj = (typeof window !== 'undefined' ? window[globalName] : typeof global !== 'undefined' ? global[globalName] : null);
551-
return obj || require(moduleName);
551+
552+
// Breaks webpack :(
553+
// return obj || require(moduleName);
554+
555+
return obj;
552556
};
553557
})();

0 commit comments

Comments
 (0)