Polyfill require("module") more usefully.

This commit is contained in:
Ben Newman
2017-06-02 15:30:56 -04:00
parent 91eb2cbc6e
commit 68527e8b15
2 changed files with 2 additions and 1 deletions

View File

@@ -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",

1
wrappers/module.js Normal file
View File

@@ -0,0 +1 @@
module.exports = module.constructor;