title: Can not access functions between modules bundled into the same Browserify bundle?
body: <p><strong>PREFACE</strong>: I have read several SO posts about trying to access code in a Browserify bundle from code that is <em>not</em> in the bundle.  I am <strong>not</strong> trying to do that.  I am having trouble accessing code <em>between</em> modules that were bundled together into the same bundle.</p>
  
  <p>I bundled two Javascript files in my Node.JS v.8.11.1 project into one <em>standalone</em> bundle using Browserify:</p>
  
  <pre><code>browserify solidity-helpers-misc.js create-game-page-support.js --standalone browserified  &gt; bundle.js
  </code></pre>
  
  <p>Unfortunately, code sourced from the <em>create-game-page-support.js</em> file cannot access code from the <em>solidity-helpers-misc.js</em> file.  Any such references are <strong>undefined</strong>.  I checked the <code>browserified</code> namespace in the Chrome debugger and it is defined, but just with the basic set of Javascript Object functions like: toString(), etc. and nothing else.</p>
  
  <p>For example, this code is in <em>bundle.js</em>, sourced from the <em>solidity-helpers-misc.js</em> file:</p>
  
  <pre><code>function getNonceViaUuid(){
      return uuidv4();
  }
  
  // Yes.  Export the code so it works with require().
  module.exports =
      {
          getNonceViaUuid: getNonceViaUuid,
      };
  
  
  }).call(this,require('_process'),"/../../../common/solidity-helpers-misc.js","/../../../common")
  </code></pre>
  
  <p>However, when I try to access the <em>getNonceViaUuid()</em> function from this code in <em>bundle.js</em> that was sourced from <em>create-game-page-support.js</em> as shown in this code snippet:</p>
  
  <pre><code>$('#create-game-btn').click(
      function(e)
      {
          console.log("Testing access to browserified file.  Remember to add sourcemap later.");
  
          var nonce = getNonceViaUuid();
          ...
  </code></pre>
  
  <p>The debugger pauses with an exception complaining that <strong>getNonceViaUuid</strong> is <em>undefined</em>.  As I said, I inspected the <em>browserified</em> namespaces in the debugger and it does not have <strong>getNonceViaUuid</strong> attached to it.  </p>
  
  <p>Note, the first file <em>solidity-helpers-misc.js</em> is a server side file that uses <em>require()</em> statements.  The second file <em>create-game-page-support.js</em> is a client side code module that I want to have access to the first file, but on the client side.  That is why I am trying to use Browserify, so I can use the code in the first file both on the server and on the client.</p>
  
  <p>How can I access functions across modules that were bundled together in the same Browserify bundle?</p>