title: Moment js undefined after r.js building
body: <p>Did anyone successfully loaded moment.js in a r.js build (with almond) ?</p>
  
  <p>I am using backgrid and backgridMomentCell: everything's works perfectly before I build my main.min.js file. After build time moment is not defined and thus can't be found by backgridMomentCell extension.</p>
  
  <p>I've tried several option (even shim) without success.</p>
  
  <p>If somedoby has a require.config that work can he/she shares it ?</p>
  
  <p>EDIT (sorry for not answering any sooner, launch time kept me away from SO):</p>
  
  <p>In the build file BackGridMomentCell keep throwing "moment is not defined" errors.</p>
  
  <p>My code as requested in the comment</p>
  
  <pre><code>
  requirejs.config({
      paths: {
          backbone: 'vendor/backbone-1.1.0',
          backbonePageable: 'vendor/backbone-pageable-1.4.1',
          backgrid: 'vendor/backgrid/js/backgrid-0.2.6',
          backgridPaginator: 'vendor/backgrid/js/extensions/paginator/backgrid-paginator',
          backgridMomentCell: 'vendor/backgrid/js/extensions/moment-cell/backgrid-moment-cell',
          bootstrap: 'vendor/bootstrap/js/bootstrap-3.0.1',
          bootstrapDatepicker: 'vendor/bootstrap-datepicker/bootstrap-datepicker-fda46bb',
          codemirror: 'vendor/codemirror/js/codemirror-3.20',
          codemirrorMarkdown: 'vendor/codemirror/mode/markdown/markdown',
          jsDiff: 'vendor/diff-1.0.7',
          fullCalendar: 'vendor/fullcalendar/fullcalendar-1.6.4',
          fullCalendarJqueryUiCustom: 'vendor/fullcalendar/jquery-ui-1.10.3.custom.min',
          jquery: 'vendor/jquery-1.10.2',
          marked: 'vendor/marked-0.2.10',
          select2: 'vendor/select2/select2-3.4.5',
          speakingurl: 'vendor/speakingurl-0.4.0',
          underscore: 'vendor/underscore-1.5.2',
          moment: 'vendor/moment.with.langs'
  
      },
      shim: {
          backbone: {
              deps: ['jquery', 'underscore'],
              exports: 'Backbone'
          },
          backgrid: {
              deps: ['jquery', 'backbone', 'underscore'],
              exports: 'Backgrid'
          },
          backgridPaginator: {
              deps: ['backgrid']
          },
          backgridMomentCell: {
              deps: ['backgrid','moment']
          },
          bootstrap: {
              deps: ['jquery']
          },
          bootstrapDatepicker: {
              deps: ['jquery']
          },
          codemirror: {
              exports: 'CodeMirror'
          },
          codemirrorMarkdown: {
              deps: ['codemirror'],
              exports: 'codemirrorMarkdown'
          },
          fullCalendar: {
              deps: ['jquery', 'fullCalendarJqueryUiCustom']
          },
          fullCalendarJqueryUiCustom: {
              deps: ['jquery']
          },
          select2: {
              deps: ['jquery']
          },
          underscore: {
              exports: '_'
          }
      }
  });
  
  </code></pre>
  
  <p>The head of my module</p>
  
  <p><pre><code>
  define([
      'jquery',
      'fullCalendar',
      'underscore',
      'backgrid',
      'backgridPaginator',
      'moment',
      'backgridMomentCell',
      'backbone',
      'collections/ItemPaginatedCollection',
      'utils/BackgridCustomUriCell'
  ], function ($, _fullCalendar, _, Backgrid, _backgridPaginator, moment, MomentCell,Backbone, ItemPaginatedCollection, BackgridCustomUriCell) {</p>
  
  <pre><code>"use strict";
  </code></pre>
  
  <p>....
  </pre></code></p>
  
  <p><strong>EDIT 3 :</strong> </p>
  
  <p>Loading moment.js before my compiled main.js works but is not optimal IMHO.</p>