1
1
/**
2
- * @license r.js 2.0.2+ Sun, 08 Jul 2012 06:25:26 GMT Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
2
+ * @license r.js 2.0.2+ Sun, 08 Jul 2012 06:36:02 GMT Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
3
3
* Available via the MIT or new BSD license.
4
4
* see: http://github.com/jrburke/requirejs for details
5
5
*/
@@ -20,7 +20,7 @@ var requirejs, require, define;
20
20
21
21
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
22
22
nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode,
23
- version = '2.0.2+ Sun, 08 Jul 2012 06:25:26 GMT',
23
+ version = '2.0.2+ Sun, 08 Jul 2012 06:36:02 GMT',
24
24
jsSuffixRegExp = /\.js$/,
25
25
commandOption = '',
26
26
useLibLoaded = {},
@@ -14931,6 +14931,10 @@ function (lang, logger, file, parse, optimize, pragma,
14931
14931
}
14932
14932
14933
14933
//Check for errors in config
14934
+ if (config.main) {
14935
+ throw new Error('"main" passed as an option to build, but the ' +
14936
+ 'supported option is called "name".');
14937
+ }
14934
14938
if (config.cssIn && !config.out) {
14935
14939
throw new Error("ERROR: 'out' option missing.");
14936
14940
}
0 commit comments