Skip to content

Commit a817b21

Browse files
committed
fix(webpack): no longer need to set NODE_ENV
1 parent e58a803 commit a817b21

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/compat/webpack/src/build.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ export const build = async (
1212
): Promise<void | {
1313
close: () => Promise<void>;
1414
}> => {
15-
if (!process.env.NODE_ENV) {
16-
process.env.NODE_ENV = 'production';
17-
}
18-
1915
const { context } = initOptions;
2016

2117
let compiler: Rspack.Compiler | Rspack.MultiCompiler;

0 commit comments

Comments
 (0)