Skip to content

Commit

Permalink
Build: Explicitly exclude the queue module from the slim build
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mgol authored Sep 28, 2020
1 parent e35fb62 commit a503c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" );
Expand Down

0 comments on commit a503c69

Please sign in to comment.