Skip to content

Commit

Permalink
fix: Disable nodeEnv optimization in Webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed Dec 20, 2024
1 parent 8b2bada commit 54d7f86
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/snaps-cli/src/webpack/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,12 @@ export async function getDefaultConfiguration(
optimization: {
minimize: config.output.minimize,

/**
* We disable the nodeEnv optimization as we already add process.NODE_ENV
* via the DefinePlugin in the section above this.
*/
nodeEnv: false,

/**
* The minimizer to use. We set it to use the `TerserPlugin`.
*/
Expand Down

0 comments on commit 54d7f86

Please sign in to comment.