Make WordPress Core


Ignore:
Timestamp:
01/15/2026 12:55:21 PM (4 months ago)
Author:
youknowriad
Message:

Build/Test Tools: Restore React Refresh scripts for hot reloading.

Restores the wp_register_development_scripts() function and associated
build infrastructure to enable hot module replacement (HMR) when using
@wordpress/scripts with the --hot flag.

The React Refresh scripts were removed in [61438] as part of the Gutenberg
build restructuring, but they are still needed for plugin developers using
wp-scripts start --hot for block development.

Props jsnajdr, wildworks, manzoorwanijk.
See #64393.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/deprecated.php

    r61472 r61487  
    64806480    <?php
    64816481}
    6482 
    6483 /**
    6484  * Registers development scripts that integrate with `@wordpress/scripts`.
    6485  *
    6486  * @see https://github.com/WordPress/gutenberg/tree/trunk/packages/scripts#start
    6487  *
    6488  * @since 6.0.0
    6489  * @deprecated 7.0.0 Obsolete due to a change in how Gutenberg is included in Core. See #64393.
    6490  *
    6491  * @param WP_Scripts $scripts WP_Scripts object.
    6492  */
    6493 function wp_register_development_scripts( $scripts ) {
    6494     _deprecated_function( __FUNCTION__, '7.0.0' );
    6495 }
Note: See TracChangeset for help on using the changeset viewer.