Skip to content

Commit 1695fb7

Browse files
author
nyqykk
committed
fix: mf assets should be compressed
1 parent a59551a commit 1695fb7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@ export function composeMinifyConfig(config: LibConfig): RsbuildConfig {
304304
jsOptions: {
305305
minimizerOptions: {
306306
mangle: false,
307-
minify: false,
307+
// MF assets are loaded over the network, which means they will not be compressed by the project. Therefore, minifying them is necessary.
308+
minify: format === 'mf',
308309
compress: {
309310
defaults: false,
310311
unused: true,

0 commit comments

Comments
 (0)