Skip to content

Commit

Permalink
Add a comment about build settings change
Browse files Browse the repository at this point in the history
  • Loading branch information
okmttdhr committed Dec 15, 2023
1 parent 2c07f30 commit 1b374b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/wpcom-block-editor/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ function getWebpackConfig(
...webpackConfig.plugins.filter(
( plugin ) => plugin.constructor.name !== 'DependencyExtractionWebpackPlugin'
),
/**
* This is needed for import-ing ThemeUpgradeModal,
* which is directly due to the use of NODE_DEBUG in the package called `util`.
*/
new webpack.DefinePlugin( {
'process.env.NODE_DEBUG': JSON.stringify( process.env.NODE_DEBUG || false ),
} ),
Expand Down

0 comments on commit 1b374b4

Please sign in to comment.