title: How to include anonymous functions into RequireJS dependencies?
body: <p>I am starting to use RequireJS now and I was already able to add my project dependencies but I still cannot add a jQuery anonymous function yet. </p>
  
  <p>For example, with my normal_file.js I do something like:</p>
  
  <p><strong>normal_file.js</strong>:</p>
  
  <pre><code>define(['dependency1'], function(Dependency) {
      var Test1 = ...;
      return Test1;
  });
  </code></pre>
  
  <p>Bu from a file that has no module, like the example below, I don't know how to encapsulate it:</p>
  
  <p><strong>lib_file.js</strong>:</p>
  
  <pre><code>(function ($) {
      // Do stuff...
  })(window.jQuery);
  </code></pre>
  
  <p>the lib_file was not made by me and I'm not sure on how it really works, but I would gess it is an anonymous auto-executed function, is that so?.</p>
  
  <p>Anyway, my goal is to use both files in my main code, like below:</p>
  
  <p><strong>main.js</strong>:</p>
  
  <pre><code>requirejs.config({
      baseUrl:'/static/editorial/js/',
      paths: {
          jquery:  'third_party/jquery-1.10.2',
          react:   'third_party/react-with-addons'
      }
  });
  
  
  var dependencies = [
      'third_party/react-with-addons',
      'third_party/jquery-1.10.2',
      'build/utils/normal_file,
      'third_party/lib_file
  ];
  
  require(dependencies, function(React, $, Test1, ??) {
      // do my stuff
  });
  </code></pre>
  
  <p>How should I encapsulate that anonymous function in order to add it as a dependency to my main file?</p>