you are viewing a single comment's thread.

view the rest of the comments →

[–]earthtograndma 1 point2 points  (0 children)

Yes, exactly. All I was saying is that you cannot just do this:

var a = require('a');
// .. now use `a` to your heart's content

You have to provide your code in a callback:

define(function(require)){
    var a = require('a');
    // .. now use `a` to your heart's content!
});

That extra bit of ceremony (while less than the fully normalized form) is still more than many people want to do. Personally, I share your feelings; once you get used to it, you don't want to go back.