@gravity-ui/app-builder 0.16.2 → 0.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1063,7 +1063,12 @@ function configureOptimization(helperOptions) {
|
|
|
1063
1063
|
if (typeof terser === 'function') {
|
|
1064
1064
|
terserOptions = terser(terserOptions);
|
|
1065
1065
|
}
|
|
1066
|
-
new TerserPlugin({
|
|
1066
|
+
new TerserPlugin({
|
|
1067
|
+
minify: config.javaScriptLoader === 'swc'
|
|
1068
|
+
? TerserPlugin.swcMinify
|
|
1069
|
+
: TerserPlugin.terserMinify,
|
|
1070
|
+
terserOptions,
|
|
1071
|
+
}).apply(compiler);
|
|
1067
1072
|
},
|
|
1068
1073
|
],
|
|
1069
1074
|
};
|