@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({ terserOptions }).apply(compiler);
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/app-builder",
3
- "version": "0.16.2",
3
+ "version": "0.16.3",
4
4
  "description": "Develop and build your React client-server projects, powered by typescript and webpack",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",