Configuring RequireJS You can use either requirejs.config() or require.config() to setup RequireJS. I preferred the requirejs.config() and require() to load modules just so to give them some distinction on usage. A typical config usage is like this: requirejs.config({
baseUrl: "js/",
paths: {
'foo': 'path/foo',
'bar': 'path/bar',
}
}); You can actually run…