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
Several packages now use React's automatic runtime to transform JSX in recent package versions: @wordpress/scripts, @wordpress/dependency-extraction-webpack-plugin and possibly @wordpress/babel-preset-default, which can cause issues where these packages are included, on sites running 6.5.5 or lower, that make use of the old JSX transform.
Within the Jetpack monorepo, the main concern is @wordpress/dependency-extraction-webpack-plugin. Should that package have it's version updated in any other package that lists is as a dependency (which is currently being prevented by this snippet:
), then sites that are not running WordPress 6.6 and that make use of the old JSX transform will see breakages.
Temporary solution
Until we're able to switch to the new JSX transform throughout the monorepo where relevant, we can polyfill the react-jsx-runtime script in a similar manner to what was mentioned here. This will ensure sites with WordPress versions below 6.6 do not encounter issues, if we then update the relevant package.
Issue
Several packages now use React's automatic runtime to transform JSX in recent package versions:
@wordpress/scripts
,@wordpress/dependency-extraction-webpack-plugin
and possibly@wordpress/babel-preset-default
, which can cause issues where these packages are included, on sites running 6.5.5 or lower, that make use of the old JSX transform.Within the Jetpack monorepo, the main concern is
@wordpress/dependency-extraction-webpack-plugin
. Should that package have it's version updated in any other package that lists is as a dependency (which is currently being prevented by this snippet:jetpack/.pnpmfile.cjs
Line 194 in afc4c3b
Temporary solution
Until we're able to switch to the new JSX transform throughout the monorepo where relevant, we can polyfill the react-jsx-runtime script in a similar manner to what was mentioned here. This will ensure sites with WordPress versions below 6.6 do not encounter issues, if we then update the relevant package.
Parent React compatibility issue: #37951
The text was updated successfully, but these errors were encountered: