title: Using NodeJS Crypto module in browser with webpack
body: <p>I am writing a javascript REPL that is intended to run in the browser and execute nodejs crypto functions. My project is in ReactJS and I am using webpack to bundle all the modules and dependencies together. I am trying to include the builtin node crypto module in the bundle file produced by webpack and I am unable to do so. Webpack seems to replace the builtin crypto module with the <code>crypto-browserify</code> using the <code>NodeSourcePlugin</code> plugin and the <code>node-libs-browser</code> package.  When I disable these checks I get an error during the compilation process complaining that the crypto module cannot be resolved.</p>
  <p>Is there a way to circumvent this behavior and include the nodejs crypto javascript code? Or is there something inherent about the crypto library that prohibits it from being included.</p>
  <p>I tried using <code>webpack.ProvidePlugin</code> to require the node crypto module at compile time and then assigning it explicitly but that didn't work.</p>
  <p>My webpack config was generated by ReactJS. It is too long to include but it should be pretty boilerplate.</p>