title: How do I change the order in which Meteor loads Javascript files?
body: <p>When you make a project with the Meteor framework, it packages all the files together, but there doesn't seem to be a way to explicitly say "I want this file to be loaded before that one".</p>
  
  <p>Let's say, for example, I have 2 javascript files: <code>foo.js</code> and <code>bar.js</code>.</p>
  
  <p>The file <code>bar.js</code> is actually containing code depending one the one inside <code>foo.js</code> but Meteor is loading <code>bar.js</code> before <code>foo.js</code>, breaking the project.</p>
  
  <ul>
  <li>In <strong>node.js</strong> I would simply use <code>require('./bar')</code> inside <code>foo.js</code></li>
  <li>In the <strong>browser</strong>, I would put a <code>&lt;script&gt;</code> tag pointing to <code>foo.js</code> and another, after, pointing to <code>bar.js</code>, in order to load the files in the correct order.</li>
  </ul>
  
  <p>How can we do that in <strong>Meteor</strong>?</p>