From 764f3643a3df30316d642ac6837409e5003859a8 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Thu, 17 Jul 2014 17:47:39 -0700 Subject: [PATCH] Build: denote that sizzle cannot be removed on this branch Fixes #14775 --- build/tasks/build.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ); -- 2.39.5