From fbc44f52fe76e1b601da76a1d7f8ef27884c06da Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82=C4=99biowski-Owczarek?= Date: Mon, 20 Jan 2020 18:58:23 +0100 Subject: [PATCH] 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 1760 bytes, to 19706 bytes (below 20k!). Closes gh-4553 --- build/tasks/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/tasks/build.js b/build/tasks/build.js index 18d101f0b..3671b4d99 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -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 ] ), [] ) -- 2.39.5