Skip to content

Commit 764f364

Browse files
committed
Build: denote that sizzle cannot be removed on this branch
Fixes #14775
1 parent 7b9b98d commit 764f364

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build/tasks/build.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,12 @@ module.exports = function( grunt ) {
159159
module = m[ 2 ];
160160

161161
if ( exclude ) {
162+
// Can't exclude sizzle on this branch
163+
if ( module === "sizzle" ) {
164+
grunt.log.error( "Sizzle cannot be excluded on the 1.x branch." );
165+
162166
// Can't exclude certain modules
163-
if ( minimum.indexOf( module ) === -1 ) {
167+
} else if ( minimum.indexOf( module ) === -1 ) {
164168
// Add to excluded
165169
if ( excluded.indexOf( module ) === -1 ) {
166170
grunt.log.writeln( flag );

0 commit comments

Comments
 (0)