Build the React JSX runtime into a new WordPress script#6678
Build the React JSX runtime into a new WordPress script#6678youknowriad wants to merge 1 commit intoWordPress:trunkfrom
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
| 'wp-polyfill-inert.min.js': 'wicg-inert/dist/inert.min.js', | ||
| 'moment.min.js': 'moment/min/moment.min.js', | ||
| 'react.min.js': 'react/umd/react.production.min.js', | ||
| 'react-dom.min.js': 'react-dom/umd/react-dom.production.min.js', |
There was a problem hiding this comment.
Also just like the backported PR, this moves react scripts we used in Core from the deprecated umd builds to CJS.
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
See WordPress/gutenberg#61692. See #6678. Props youknowriad. Fixes #61324. git-svn-id: https://develop.svn.wordpress.org/trunk@58271 602fd350-edb4-49c9-b593-d223f7449a82
Trac ticket: https://core.trac.wordpress.org/ticket/61324
Backports Gutenberg PR WordPress/gutenberg#61692
This PR adds the necessary webpack config to build the React JSX Runtime script and adds the script to WordPress. Without this, the next package update on Core will be blocked as the new packages are going to be using the new JSX Runtime.
For the moment though, you can test that the PR adds the
react-jsx-runtimescript towp-includes/js/dist/vendor/react-jsx-runtime.jsAlso if you load manually the
react-jsx-runtimein WordPress, you'll see the ReactJSXRuntime global available in the console.