23 lines
497 B
JavaScript
23 lines
497 B
JavaScript
|
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;
|
||
|
};
|