Skip to content

Instantly share code, notes, and snippets.

@SBoudrias
Last active December 11, 2015 23:19
Show Gist options
  • Save SBoudrias/4676147 to your computer and use it in GitHub Desktop.
Save SBoudrias/4676147 to your computer and use it in GitHub Desktop.
({
baseUrl: ".",
name: "module.js",
out: "main-built.js"
})
(function() {
define("myModuleA", function() {
return {
"A" : function( a ) { return a + 1; }
};
});
}());
define("myModuleB", [ "myModuleA" ], function( modA ) {
return {
"A" : function( a ) { return modA(a) + 1; }
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment