Skip to content

Commit 87130cd

Browse files
committed
Fixes requirejs#206, error out if main is used for build option
1 parent 675ae7f commit 87130cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build/jslib/build.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,10 @@ function (lang, logger, file, parse, optimize, pragma,
840840
}
841841

842842
//Check for errors in config
843+
if (config.main) {
844+
throw new Error('"main" passed as an option to build, but the ' +
845+
'supported option is called "name".');
846+
}
843847
if (config.cssIn && !config.out) {
844848
throw new Error("ERROR: 'out' option missing.");
845849
}

0 commit comments

Comments
 (0)