]> source.dussan.org Git - jquery.git/commitdiff
Build: denote that sizzle cannot be removed on this branch 1626/head
authorTimmy Willison <timmywillisn@gmail.com>
Fri, 18 Jul 2014 00:47:39 +0000 (17:47 -0700)
committerTimmy Willison <timmywillisn@gmail.com>
Fri, 18 Jul 2014 00:47:39 +0000 (17:47 -0700)
Fixes #14775

build/tasks/build.js

index 738f934b4be7c3e8b37d662944edfb5b63bb7e2b..4b807e63d374f5543c9862eeafcae4082c79849d 100644 (file)
@@ -159,8 +159,12 @@ module.exports = function( grunt ) {
                                        module = m[ 2 ];
 
                                if ( exclude ) {
+                                       // Can't exclude sizzle on this branch
+                                       if ( module === "sizzle" ) {
+                                               grunt.log.error( "Sizzle cannot be excluded on the 1.x branch." );
+
                                        // Can't exclude certain modules
-                                       if ( minimum.indexOf( module ) === -1 ) {
+                                       } else if ( minimum.indexOf( module ) === -1 ) {
                                                // Add to excluded
                                                if ( excluded.indexOf( module ) === -1 ) {
                                                        grunt.log.writeln( flag );