From 952221dac2923e6f9afcc90034081a2c95ba2f3c Mon Sep 17 00:00:00 2001 From: adamsilverstein Date: Tue, 17 Mar 2026 21:33:07 -0700 Subject: [PATCH] Build: Exclude non-minified VIPS files from grunt module copy The gutenberg-modules grunt copy task copies all files except .map files. This adds an exclusion for non-minified VIPS files which are ~16MB of inlined WASM with no debugging value over the minified versions. This matches the existing filter in tools/gutenberg/copy.js and prevents the ~16MB worker.js from being copied alongside the identically-sized worker.min.js. Co-Authored-By: Claude Opus 4.6 (1M context) --- Gruntfile.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 8603635b28fbc..99f7d3312f1a6 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -627,7 +627,13 @@ module.exports = function(grunt) { files: [ { expand: true, cwd: 'gutenberg/build/modules', - src: [ '**/*', '!**/*.map' ], + src: [ + '**/*', + '!**/*.map', + // Skip non-minified VIPS files — they are ~16MB of inlined WASM + // with no debugging value over the minified versions. + '!vips/!(*.min).js', + ], dest: WORKING_DIR + 'wp-includes/js/dist/script-modules/', } ], },