@gravity-ui/app-builder 0.16.1 → 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.
@@ -5,7 +5,7 @@ import type { Options as MomentTzOptions } from 'moment-timezone-data-webpack-pl
5
5
  import type { Configuration, DefinePlugin, FileCacheOptions, MemoryCacheOptions } from 'webpack';
6
6
  import type { Configuration as RspackConfiguration } from '@rspack/core';
7
7
  import type * as Babel from '@babel/core';
8
- import type * as Swc from '@swc/types';
8
+ import type * as Swc from '@swc/core';
9
9
  import type { ServerConfiguration } from 'webpack-dev-server';
10
10
  import type { Options as CircularDependenciesOptions } from 'circular-dependency-plugin';
11
11
  import type { Config as SvgrConfig } from '@svgr/core';
@@ -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.1",
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",
@@ -72,15 +72,15 @@
72
72
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
73
73
  "@rsdoctor/rspack-plugin": "^0.4.13",
74
74
  "@rsdoctor/webpack-plugin": "^0.4.13",
75
- "@rspack/core": "^1.2.2",
75
+ "@rspack/core": "1.2.2",
76
76
  "@rspack/dev-server": "^1.0.10",
77
77
  "@rspack/plugin-react-refresh": "^1.0.0",
78
78
  "@statoscope/webpack-plugin": "^5.28.2",
79
79
  "@svgr/core": "^8.1.0",
80
80
  "@svgr/plugin-jsx": "^8.1.0",
81
81
  "@svgr/webpack": "^8.1.0",
82
- "@swc/plugin-transform-imports": "^6.4.0",
83
- "@swc/types": "^0.1.17",
82
+ "@swc/core": "1.10.12",
83
+ "@swc/plugin-transform-imports": "6.4.0",
84
84
  "babel-loader": "^9.2.1",
85
85
  "babel-plugin-import": "^1.13.8",
86
86
  "babel-plugin-inline-react-svg": "^2.0.2",