title: How to override a vendor library with requirejs
body: <p>I use the Marionette.js framework and I need to override a function of the Marionette.TemplateCache module but without update the marionette.js file.
  So, I've created a new module for this :</p>
  
  <pre><code>    define(['marionette'], function (Marionette) {
      'use strict';
  
      _.extend(Marionette.TemplateCache.prototype, {
          loadTemplate: function(templateId){
  
              var template = templateId;
  
              if (!template || template.length === 0){
                  throwError("Could not find template: '" + templateId + "'", "NoTemplateError");
              }
  
              return template;
          }
      });
      return Marionette;
  });
  </code></pre>
  
  <p>But, I don't know how to configure my requirejs main, for when I load the Marionette.js framework , my module override Marionette.js.</p>
  
  <p>Have you got any ideas how to do this?</p>
  
  <p>Thanks.</p>
  
  <p>Jonathan.</p>