mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-29 03:45:15 +00:00
25 lines
573 B
JavaScript
25 lines
573 B
JavaScript
|
module.exports = function(originalModule) {
|
||
|
if (!originalModule.webpackPolyfill) {
|
||
|
var module = Object.create(originalModule);
|
||
|
// 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;
|
||
|
}
|
||
|
});
|
||
|
Object.defineProperty(module, "exports", {
|
||
|
enumerable: true
|
||
|
});
|
||
|
module.webpackPolyfill = 1;
|
||
|
}
|
||
|
return module;
|
||
|
};
|