Make WordPress Core

Changeset 61487 for trunk/package.json


Ignore:
Timestamp:
01/15/2026 12:55:21 PM (3 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/package.json

    r61458 r61487  
    2929    "devDependencies": {
    3030        "@lodder/grunt-postcss": "^3.1.1",
     31        "@pmmmwh/react-refresh-webpack-plugin": "0.6.1",
    3132        "@playwright/test": "1.56.1",
    3233        "@wordpress/e2e-test-utils-playwright": "1.33.2",
     
    6263        "prettier": "npm:wp-prettier@3.0.3",
    6364        "qunit": "~2.24.2",
     65        "react-refresh": "0.14.0",
    6466        "sass": "1.94.0",
    6567        "sinon": "16.1.3",
Note: See TracChangeset for help on using the changeset viewer.