Sha256: 08a873ea26a09995746d3e2ad423620ef06a8c9e561973ae3971cb27151752c4

Contents?: true

Size: 517 Bytes

Versions: 10

Compression:

Stored size: 517 Bytes

Contents

module.exports = function(module) {
	if(!module.webpackPolyfill) {
		module.deprecate = function() {};
		module.paths = [];
		// module.parent = undefined by default
		if(!module.children) module.children = [];
		Object.defineProperty(module, "loaded", {
			enumerable: true,
			get: function() {
				return module.l;
			}
		});
		Object.defineProperty(module, "id", {
			enumerable: true,
			get: function() {
				return module.i;
			}
		});
		module.webpackPolyfill = 1;
	}
	return module;
};

Version data entries

10 entries across 6 versions & 3 rubygems

Version Path
ilog-0.4.1 node_modules/webpack/buildin/module.js
ilog-0.4.0 node_modules/webpack/buildin/module.js
ilog-0.3.3 node_modules/webpack/buildin/module.js
optimacms-0.4.3 spec/dummy/node_modules/@rails/webpacker/node_modules/webpack/node_modules/webpack/buildin/module.js
optimacms-0.4.3 spec/dummy/node_modules/@rails/webpacker/node_modules/webpack/buildin/module.js
optimacms-0.4.3 spec/dummy/node_modules/webpack/buildin/module.js
optimacms-0.4.2 spec/dummy/node_modules/@rails/webpacker/node_modules/webpack/buildin/module.js
optimacms-0.4.2 spec/dummy/node_modules/webpack/buildin/module.js
optimacms-0.4.2 spec/dummy/node_modules/@rails/webpacker/node_modules/webpack/node_modules/webpack/buildin/module.js
cortex-0.1.3 spec/dummy/node_modules/webpack/buildin/module.js