Skip to content

Instantly share code, notes, and snippets.

@Munter
Created September 2, 2015 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Munter/31780483ac13e91367fe to your computer and use it in GitHub Desktop.
Save Munter/31780483ac13e91367fe to your computer and use it in GitHub Desktop.
define(function(require) {
function coreDependencies(callback) {
// Core dependencies, that needs to be loaded before the rest
require([
'lib/prototype/Function.prototype',
'lib/prototype/String.prototype',
'lib/prototype/Array.prototype',
'underscore',
'jquery',
'jquery-ui'
], function() {
// Then load these
require([
'backbone', 'backbone-super', 'jsx', 'react', 'react-backbone'
], callback);
});
}
return {
init: coreDependencies
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment