Skip to content

Commit e7400fe

Browse files
author
David Kowis
committed
There's no uglify2, just uglify
1 parent fda20ce commit e7400fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/jslib/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,10 +1428,10 @@ define(function (require) {
14281428
}
14291429

14301430
if (config.generateSourceMaps) {
1431-
if (config.preserveLicenseComments && !(config.optimize === 'none' || config.optimize === 'uglify2')) {
1431+
if (config.preserveLicenseComments && !(config.optimize === 'none' || config.optimize === 'uglify')) {
14321432
throw new Error('Cannot use preserveLicenseComments and ' +
14331433
'generateSourceMaps together, unless optimize is set ' +
1434-
'to \'uglify2\'. Either explicitly set preserveLicenseComments ' +
1434+
'to \'uglify\'. Either explicitly set preserveLicenseComments ' +
14351435
'to false (default is true) or turn off generateSourceMaps. ' +
14361436
'If you want source maps with license comments, see: ' +
14371437
'http://requirejs.org/docs/errors.html#sourcemapcomments');

0 commit comments

Comments
 (0)