Make WordPress Core

Changeset 55512


Ignore:
Timestamp:
03/10/2023 12:35:42 PM (15 months ago)
Author:
zieladam
Message:

Build/Test tools: Prevent registering the same private JavaScript API twice.

This sets the IS_WORDPRESS_CORE global variable to true in the webpack build script to enable extra safeguards around private JavaScript APIs.

Props costdev, hellofromTonya, gziolo, peterwilsoncc.
Fixes #57795.

File:
1 edited

Legend:

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

    r55275 r55512  
    153153                // Inject the `IS_GUTENBERG_PLUGIN` global, used for feature flagging.
    154154                'process.env.IS_GUTENBERG_PLUGIN': false,
     155                // Inject the `IS_WORDPRESS_CORE` global, used for feature flagging.
     156                'process.env.IS_WORDPRESS_CORE': true,
    155157                'process.env.FORCE_REDUCED_MOTION': JSON.stringify(
    156158                    process.env.FORCE_REDUCED_MOTION
Note: See TracChangeset for help on using the changeset viewer.