From: Timmy Willison Date: Fri, 18 Jul 2014 00:47:39 +0000 (-0700) Subject: Build: denote that sizzle cannot be removed on this branch X-Git-Tag: 3.0.0-alpha1+compat~228 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=764f3643a3df30316d642ac6837409e5003859a8;p=jquery.git Build: denote that sizzle cannot be removed on this branch Fixes #14775 --- diff --git a/build/tasks/build.js b/build/tasks/build.js index 738f934b4..4b807e63d 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -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 );