summaryrefslogtreecommitdiffstats
path: root/node_modules/webpack/buildin/module.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/webpack/buildin/module.js')
-rw-r--r--node_modules/webpack/buildin/module.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/node_modules/webpack/buildin/module.js b/node_modules/webpack/buildin/module.js
new file mode 100644
index 0000000..c92808b
--- /dev/null
+++ b/node_modules/webpack/buildin/module.js
@@ -0,0 +1,22 @@
+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;
+};