title: Getting closure-compiler and Node.js to play nice
body: <p>Are there any projects that used node.js and closure-compiler (CC for short) together?</p>
  
  <p>The official CC recommendation is to compile all code for an application together, but when I compile some simple node.js code which contains a <code>require("./MyLib.js")</code>, that line is put directly into the output, but it doesn't make any sense in that context.</p>
  
  <p>I see a few options:</p>
  
  <ol>
  <li>Code the entire application as a single file. This solves the problem by avoiding it, but is bad for maintenance.</li>
  <li>Assume that all files will be concatenated before execution. Again this avoids the problem, but makes it harder to implement a un-compiled debug mode.</li>
  <li>I'd like to get CC to "understand" the node.js require() function, but that probably can't be done without editing the compiler itself, can it?</li>
  </ol>