Sha256: 2e6b4fa4c6eb69554654a4424b9392a7419ae31210cb0a956c8887bda5e3871e
Contents?: true
Size: 347 Bytes
Versions: 24
Compression:
Stored size: 347 Bytes
Contents
module.exports = function(moduleName) { try { return module.parent.require(moduleName); } catch (e) { // This could mean that we are in a browser context. // Add another try catch like it used to be, for backwards compability // and browserify reasons. try { return require(moduleName); } catch (e) {} } };
Version data entries
24 entries across 17 versions & 2 rubygems