Make WordPress Core

Changeset 58271


Ignore:
Timestamp:
05/31/2024 05:54:41 PM (7 weeks ago)
Author:
ellatrix
Message:

React: Upgrade to the new JSX transform.

See https://github.com/WordPress/gutenberg/pull/61692.
See https://github.com/WordPress/wordpress-develop/pull/6678.

Props youknowriad.

Fixes #61324.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r58219 r58271  
    9292        'react',
    9393        'react-dom' => array( 'react' ),
     94        'react-jsx-runtime' => array( 'react' ),
    9495        'regenerator-runtime',
    9596        'moment',
     
    110111        'react'                       => '18.3.1',
    111112        'react-dom'                   => '18.3.1',
     113        'react-jsx-runtime'           => '18.3.1',
    112114        'regenerator-runtime'         => '0.14.0',
    113115        'moment'                      => '2.29.4',
  • trunk/tools/webpack/packages.js

    r58162 r58271  
    9696        'wp-polyfill-importmap.js': 'es-module-shims/dist/es-module-shims.wasm.js',
    9797        'moment.js': 'moment/moment.js',
    98         'react.js': 'react/umd/react.development.js',
    99         'react-dom.js': 'react-dom/umd/react-dom.development.js',
    10098        'regenerator-runtime.js': 'regenerator-runtime/runtime.js',
    10199    };
     
    112110        'wp-polyfill-inert.min.js': 'wicg-inert/dist/inert.min.js',
    113111        'moment.min.js': 'moment/min/moment.min.js',
    114         'react.min.js': 'react/umd/react.production.min.js',
    115         'react-dom.min.js': 'react-dom/umd/react-dom.production.min.js',
    116112    };
    117113
  • trunk/webpack.config.js

    r57377 r58271  
    44const packagesConfig = require( './tools/webpack/packages' );
    55const modulesConfig = require( './tools/webpack/modules' );
     6const vendorsConfig = require( './tools/webpack/vendors' );
    67
    78module.exports = function( env = { environment: "production", watch: false, buildTarget: false } ) {
     
    2021        packagesConfig( env ),
    2122        modulesConfig( env ),
     23        ...vendorsConfig( env ),
    2224    ];
    2325
Note: See TracChangeset for help on using the changeset viewer.