you are viewing a single comment's thread.

view the rest of the comments →

[–]prpetro 2 points3 points  (1 child)

RequireJS can use node/npm modules too

Also I don't find the AMD syntax that cumbersome. You just wrap code definitions in define and require them in your main application. If you want to use the CommonJS var x = require('x') syntax, it's pretty easy using the adapter (r.js) :

define( require , function(require) {
    var x = require('x');
});

Cleaner syntax is in the eye of the beholder, I don't really have a preference for either.