Skip to content

Commit

Permalink
Core: Exclude callbacks & deferred modules in the slim build as well
Browse files Browse the repository at this point in the history
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 1760 bytes,
to 19706 bytes (below 20k!).

Closes gh-4553
  • Loading branch information
mgol committed Jan 20, 2020
1 parent ff28199 commit fbc44f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/tasks/build.js
Expand Up @@ -306,7 +306,7 @@ module.exports = function( grunt ) {
// the official slim build
.reduce( ( acc, elem ) => acc.concat(
elem === "slim" ?
[ "-ajax", "-effects" ] :
[ "-ajax", "-callbacks", "-deferred", "-effects" ] :
[ elem ]
), [] )

Expand Down

0 comments on commit fbc44f5

Please sign in to comment.