From 50337e56b3d9a3bfde93a311a77eba3b03ad377e Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers <359867+desrosj@users.noreply.github.com> Date: Wed, 11 Mar 2026 21:02:41 -0400 Subject: [PATCH 1/2] Fix missing JS files in `wp-includes/build`. --- Gruntfile.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index 355a8989db3db..fe9248d86e461 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -612,6 +612,16 @@ module.exports = function(grunt) { dest: WORKING_DIR + 'wp-includes/build/', } ], }, + 'gutenberg-js': { + files: [ { + expand: true, + cwd: 'gutenberg/build', + src: [ + 'routes/**/*.js', + ], + dest: WORKING_DIR + 'wp-includes/build/', + } ], + }, 'gutenberg-modules': { files: [ { expand: true, From c725d0b168e03ad7b51b075e5b011b9abe142007 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers <359867+desrosj@users.noreply.github.com> Date: Wed, 11 Mar 2026 21:14:48 -0400 Subject: [PATCH 2/2] More JS copying fixes. --- Gruntfile.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index fe9248d86e461..d196c51152658 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -617,6 +617,7 @@ module.exports = function(grunt) { expand: true, cwd: 'gutenberg/build', src: [ + 'pages/**/*.js', 'routes/**/*.js', ], dest: WORKING_DIR + 'wp-includes/build/', @@ -2051,6 +2052,7 @@ module.exports = function(grunt) { grunt.registerTask( 'build:gutenberg', [ 'copy:gutenberg-php', + 'copy:gutenberg-js', 'gutenberg:copy', 'copy:gutenberg-modules', 'copy:gutenberg-styles',