diff --git a/map.json b/map.json index 704f1326aa..3aefe0ab1a 100644 --- a/map.json +++ b/map.json @@ -5,7 +5,7 @@ "cluster": null, "console": "console-browserify", "constants": "constants-browserify", - "crypto": "crypto-browserify", + "crypto": "../wrappers/crypto.js", "core-util-is": null, "dgram": null, "dns": null, diff --git a/wrappers/crypto.js b/wrappers/crypto.js new file mode 100644 index 0000000000..206074a0af --- /dev/null +++ b/wrappers/crypto.js @@ -0,0 +1,2 @@ +global.Buffer = global.Buffer || require("buffer").Buffer; +module.exports = require("crypto-browserify");