Skip to content

Commit 4112512

Browse files
committed
Core: Exclude callbacks & deferred modules in the slim build as well.
So far, the slim build only excluded ajax & effects modules. As many web apps right now rely on native Promises, often with a polyfill for legacy browsers, deferred & callbacks modules are not that useful for sites that already exclude ajax & effects modules. This decreases the gzipped minified size of the slim module by 1758 bytes, to 19656 bytes (below 20k!).
1 parent 9fd2fa5 commit 4112512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = function( Release ) {
4545
generateArtifacts: function( callback ) {
4646
Release.exec( "grunt", "Grunt command failed" );
4747
Release.exec(
48-
"grunt custom:-ajax,-effects --filename=jquery.slim.js && " +
48+
"grunt custom:-ajax,-callbacks,-deferred,-effects --filename=jquery.slim.js && " +
4949
"grunt remove_map_comment --filename=jquery.slim.js",
5050
"Grunt custom failed"
5151
);

0 commit comments

Comments
 (0)