You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
497 B

4 years ago
  1. module.exports = function(module) {
  2. if (!module.webpackPolyfill) {
  3. module.deprecate = function() {};
  4. module.paths = [];
  5. // module.parent = undefined by default
  6. if (!module.children) module.children = [];
  7. Object.defineProperty(module, "loaded", {
  8. enumerable: true,
  9. get: function() {
  10. return module.l;
  11. }
  12. });
  13. Object.defineProperty(module, "id", {
  14. enumerable: true,
  15. get: function() {
  16. return module.i;
  17. }
  18. });
  19. module.webpackPolyfill = 1;
  20. }
  21. return module;
  22. };