title: Bundle node.js apps to a single file with Browserify
body: <p>I'd like to distribute my node.js app as a single js file. The application is really simple, but it depends on a few libraries.</p>
  
  <p>Browserify seems to bundle the <code>npm</code> dependencies nicely. However the app also depends on the <code>fs</code> built-in file system library and unfortunately its signatures doesn't seem to be loaded. For instance the following code gives <code>undefined is not a function</code> error.</p>
  
  <pre><code>var fs = require('fs')
  fs.readFileSync(file, 'utf8');
  </code></pre>
  
  <p>I understand that main purpose of Browserify is to bring CommonJs based apps to the browser. But I wonder if there is any way to make the compiler fall back to the default <code>require</code> global function for built-in libraries.</p>