Skip to content

Commit e533134

Browse files
author
nyqykk
committed
fix: add nodeEnv for mf format
1 parent e171f96 commit e533134

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/core/src/config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,10 @@ const composeFormatConfig = (
548548
output: {
549549
uniqueName: pkgJson.name as string,
550550
},
551+
// now we have not provide dev mode for users, so we can always set nodeEnv as 'production'
552+
optimization: {
553+
nodeEnv: 'production',
554+
},
551555
},
552556
},
553557
};

0 commit comments

Comments
 (0)