You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
Build with @wordpress/scripts instead of Laravel Mix. Laravel Mix 5 runs webpack 4, which hashes with MD4 and therefore cannot build on Node 17 or later (error:0308010C:digital envelope routines::unsupported).
The compiled bundle is committed and ships in the release archive. It was gitignored, so assets/scripts/dist/editor.js was missing from every Composer install and each consuming site had to build the plugin itself.
The editor script is registered from the generated editor.asset.php, so its dependencies and cache-busting version follow the build instead of a hand-written list.
Editor sources import from the @wordpress/* packages rather than reading the wp global.
Fixed
The editor script no longer loads without react and react-jsx-runtime, which the hand-written dependency list had never included.
Added
Translations for the editor script are loaded with wp_set_script_translations().
A build workflow compiles the plugin on pull requests, so a dependency bump that breaks the build is caught before release.