> Duplication of module dependencies is also tedious and error-prone.
You can combine these with RequireJS as well. Instead of:
define(['a', 'b', 'c'], function () {
var a = require('a');
var b = require('b');
var c = require('c');
...
});
You can instead just do: define(['a', 'b', 'c'], function (a, b, c) {
...
});