Skip to content

Instantly share code, notes, and snippets.

@salomvary
Created October 18, 2011 10:36
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 salomvary/1295129 to your computer and use it in GitHub Desktop.
Save salomvary/1295129 to your computer and use it in GitHub Desktop.
requirejs test
({
appDir: '.',
baseUrl: './',
dir: '../build/',
optimize: 'none',
modules: [
{
name: 'one',
excludeShallow: ['four', 'five']
},
{
name: 'four',
exclude: ['one']
}
]
})
define(function() {
return {Five: function() {}};
});
define(['two', 'three', 'five'], function(one, two, three) {
return {Four: function() {}};
});
require(['two', 'three', 'four'], function(two, three, four) {
var One = function() {};
});
one
two
three
four
two
three
five
define(function() {
return {Three:function() {}};
});
define(function() {
return {Two: function() {}};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment