Make WordPress Core

Changes between Initial Version and Version 6 of Ticket #59407


Ignore:
Timestamp:
09/20/2023 12:19:13 PM (3 years ago)
Author:
gziolo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #59407

    • Property Keywords has-patch gutenberg-merge added
    • Property Owner set to gziolo
  • Ticket #59407 – Description

    initial v6  
    22
    33The `warning` from `@wordpress/warning` no longer worked correctly with webpack 5. In practice, it no longer called `console.warn`.  To fix it, the usage of `process.env.NODE_ENV` check got replaced with another optional global: `SCRIPT_DEBUG`. All the tools used in the Gutenberg, get updated to work with this new constant, including `@wordpress/scripts`. This way, developers are able to guard code that should be run only in development mode. In WordPress core, the same constant needs to be added mostly to ensure that the code behind the check gets completely removed in production mode.
     4
     5It's an enhancement on top of #59411 and can be tested after WordPress packages get backported from the Gutenberg plugin.