diff --git a/map.json b/map.json index 438c0d81d1..96c88caab8 100644 --- a/map.json +++ b/map.json @@ -13,7 +13,7 @@ "fs": null, "http": "http-browserify", "https": "https-browserify", - "module": null, + "module": "../wrappers/module.js", "net": null, "os": "os-browserify/browser.js", "path": "path-browserify", diff --git a/wrappers/module.js b/wrappers/module.js new file mode 100644 index 0000000000..1225a93b80 --- /dev/null +++ b/wrappers/module.js @@ -0,0 +1 @@ +module.exports = module.constructor;