define([ 'backbone', 'bootstrap_plugins', 'flight', 'text', 'moment_pl', 'es5shim', 'es5sham', 'jquery_migrate' ], function() {
  'use strict';

  require([ 'legacy/component', 'cookies_alert/component', 'user_race_stats/component' ], function(legacy, CookiesAlert, UserRaceStats) {
    CookiesAlert.attachTo('#cnr-cookies-alert');
    UserRaceStats.attachTo('#cnr-user-race-stats');
  });
});

define([ 'es5shim', 'es5sham', 'backbone', 'bootstrap_plugins', 'flight', 'text', 'moment_pl', 'jquery_migrate' ], function() {
  'use strict';

  require([ 'legacy/component', 'cookies_alert/component', 'user_race_stats/component' ], function(legacy, CookiesAlert, UserRaceStats) {
    CookiesAlert.attachTo('#cnr-cookies-alert');
    UserRaceStats.attachTo('#cnr-user-race-stats');
  });
});

Fix IE7&8 error by loading es5shim and es5sham before flight :)
Fix IE7&8 error by loading es5shim and es5sham before flight :)