]> source.dussan.org Git - jquery.git/commitdiff
Build: Explicitly exclude the queue module from the slim build
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 28 Sep 2020 16:33:33 +0000 (18:33 +0200)
committerGitHub <noreply@github.com>
Mon, 28 Sep 2020 16:33:33 +0000 (18:33 +0200)
The queue module is not present in the slim build as it depends on deferred
and our Gruntfile specifies excluding deferred should also exclude queue:
https://github.com/jquery/jquery/blob/3.5.1/Gruntfile.js#L66
This commit makes this exclusion explicit so that the queue module never
accidentally gets re-included in the slim build if it stopped importing from
the deferred module directly.

Closes gh-4793

build/tasks/build.js

index 06a5f404863bb8ef0077f7ed7396ce9c62ac43de..e376be6cc3266fb0ef1c043736323b88bed57d20 100644 (file)
@@ -60,7 +60,7 @@ module.exports = function( grunt ) {
                const done = this.async();
 
                try {
-                       const slimFlags = [ "-ajax", "-callbacks", "-deferred", "-effects" ];
+                       const slimFlags = [ "-ajax", "-callbacks", "-deferred", "-effects", "-queue" ];
                        const flags = this.flags;
                        const optIn = flags[ "*" ];
                        let name = grunt.option( "filename" );