You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/core/src/config.ts
+38Lines changed: 38 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -397,6 +397,8 @@ export function composeMinifyConfig(config: LibConfig): EnvironmentConfig {
397
397
js: true,
398
398
css: false,
399
399
jsOptions: {
400
+
// Tweaked based on https://github.com/web-infra-dev/rspack/blob/e350b76163c976ee48da54c29bbb9d72153738d7/crates/rspack_plugin_swc_js_minimizer/src/lib.rs#L40.
401
+
test: /\.[cm]?jsx?(\?.*)?$/,
400
402
minimizerOptions: {
401
403
mangle: false,
402
404
// MF assets are loaded over the network, which means they will not be compressed by the project. Therefore, minifying them is necessary.
0 commit comments