Changeset 58577
- Timestamp:
- 06/26/2024 08:25:13 AM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/webpack/shared.js
r58193 r58577 42 42 plugins: [ 43 43 new DefinePlugin( { 44 /*45 * These variables are part of https://github.com/WordPress/gutenberg/pull/6148646 * 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 53 44 // Inject the `IS_GUTENBERG_PLUGIN` global, used for feature flagging. 54 45 'globalThis.IS_GUTENBERG_PLUGIN': JSON.stringify( false ), … … 59 50 mode === 'development' 60 51 ), 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' ),68 52 } ), 69 53 ],
Note: See TracChangeset
for help on using the changeset viewer.