Skip to content

Fix JSX runtime compatibility for existing editor scripts - #677

Merged
pfefferle merged 1 commit into
mainfrom
fix/editor-jsx-runtime-compatibility
Oct 5, 2026
Merged

pfefferle merged 1 commit into
mainfrom
fix/editor-jsx-runtime-compatibility

Conversation

@pfefferle

Copy link
Copy Markdown
Owner

The RSVP format and Webmention document settings scripts depend on react-jsx-runtime, which WordPress 6.2–6.5 does not register. Bundle the React 18.3.1 JSX runtime in these scripts while continuing to use WordPress’s React and WordPress packages. This also covers automatic JSX calls inside imported WordPress icons.

Adds a webpack dependency-extraction override, pins the bundled React runtime version, updates built assets, and excludes the build configuration from release archives. Regression tests execute both production bundles without ReactJSXRuntime and verify registration and rendering.

Validation: production build and JavaScript lint passed; all 49 JavaScript tests passed. Generated scripts and asset manifests contain no ReactJSXRuntime or react-jsx-runtime dependency. Full browser validation on WordPress 6.2–6.5 was not performed.

@pfefferle
pfefferle merged commit 31a3b4e into main Oct 5, 2026
9 of 10 checks passed
@pfefferle
pfefferle deleted the fix/editor-jsx-runtime-compatibility branch October 5, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant