同じ関数スコープでdefineとrequireの両方を使用できるかどうかを知りたい。通常、requireまたはdefineのいずれかですが、両方を同じスコープに含めるにはどうすればよいですか?
define(["my/cart", "my/inventory"],
function(cart, inventory) {
//Define foo/title object in here.
}
);
require(["some/module", "a.js", "b.js"], function(someModule) {
//This function will be called when all the dependencies
//listed above are loaded. Note that this function could
//be called before the page is loaded.
//This callback is optional.
});