Skip to content

Commit

Permalink
fix: add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
CreativeTechGuy committed Dec 3, 2022
1 parent 1571edd commit 30dba1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/webpack-cli/src/webpack-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2187,6 +2187,7 @@ class WebpackCLI implements IWebpackCLI {
callback?: Callback<[Error | undefined, WebpackCLIStats | undefined]>,
): Promise<WebpackCompiler> {
if (typeof options.defineProcessEnvNodeEnv === "string") {
// TODO: This should only set NODE_ENV for the runtime not for the config too. Change this during next breaking change.
process.env.NODE_ENV = options.defineProcessEnvNodeEnv;
} else if (typeof options.nodeEnv === "string") {
process.env.NODE_ENV = options.nodeEnv;
Expand Down

0 comments on commit 30dba1f

Please sign in to comment.