Make WordPress Core

Changeset 58577

Timestamp:
06/26/2024 08:25:13 AM (6 weeks ago)
Author:
gziolo
Message:

Build: Remove legacy webpack DefinePlugin configuration

Follow-up [58193].
Fixes #61262.
Props jonsurrell.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/webpack/shared.js

    r58193 r58577  
    4242        plugins: [
    4343            new DefinePlugin( {
    44                 /*
    45                  * These variables are part of https://github.com/WordPress/gutenberg/pull/61486
    46                  * They're expected to be released in an upcoming version of Gutenberg.
    47                  *
    48                  * Defining this before the packages are released is harmless.
    49                  *
    50                  * @todo Remove the non-globalThis defines here when packages have been upgraded to the globalThis versions.
    51                  */
    52 
    5344                // Inject the `IS_GUTENBERG_PLUGIN` global, used for feature flagging.
    5445                'globalThis.IS_GUTENBERG_PLUGIN': JSON.stringify( false ),
     
    5950                    mode === 'development'
    6051                ),
    61 
    62                 // Inject the `IS_GUTENBERG_PLUGIN` global, used for feature flagging.
    63                 'process.env.IS_GUTENBERG_PLUGIN': JSON.stringify( false ),
    64                 // Inject the `IS_WORDPRESS_CORE` global, used for feature flagging.
    65                 'process.env.IS_WORDPRESS_CORE': JSON.stringify( true ),
    66                 // Inject the `SCRIPT_DEBUG` global, used for dev versions of JavaScript.
    67                 SCRIPT_DEBUG: JSON.stringify( mode === 'development' ),
    6852            } ),
    6953        ],
Note: See TracChangeset for help on using the changeset viewer.