[wp-trac] [WordPress Trac] #64393: Change how we include Gutenberg in Core

WordPress Trac noreply at wordpress.org
Wed Jan 28 10:27:36 UTC 2026


#64393: Change how we include Gutenberg in Core
------------------------------+--------------------------
 Reporter:  youknowriad       |       Owner:  youknowriad
     Type:  task (blessed)    |      Status:  reopened
 Priority:  high              |   Milestone:  7.0
Component:  Build/Test Tools  |     Version:
 Severity:  blocker           |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+--------------------------

Comment (by youknowriad):

 In [changeset:"61543" 61543]:
 {{{
 #!CommitTicketReference repository="" revision="61543"
 Build/Test Tools: Fix React Refresh hot reloading for block plugins.

 The `react-refresh-entry.js` script was bundling its own copy of
 `react-refresh/runtime` instead of using the `window.ReactRefreshRuntime`
 global set up by `react-refresh-runtime.js`. This created two separate
 runtime instances: the entry script set up hooks on its bundled copy,
 while
 plugins called `performReactRefresh()` on the window global — a different
 instance with no hooks registered.

 This splits the development webpack config into two configs so that
 `externals` only applies to the entry script. The runtime config bundles
 `react-refresh/runtime` and exposes it as `window.ReactRefreshRuntime`,
 while the entry config uses that global as an external.

 Props manzoorwanijk, wildworks.
 See #64393.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64393#comment:117>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list